cmake maintenance, was missing 2 headers and made some minor improvements to cmake_co...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 25 Jan 2011 08:35:10 +0000 (08:35 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 25 Jan 2011 08:35:10 +0000 (08:35 +0000)
also converted GHOST_SystemWin32.cpp to utf8.

build_files/cmake/cmake_consistency_check.py
intern/ghost/CMakeLists.txt
intern/ghost/intern/GHOST_SystemWin32.cpp

index 7a3ac9e..0998d22 100644 (file)
@@ -128,6 +128,10 @@ def cmake_get_src(f):
                             raise Exception("strict formatting not kept '*)' %s:%d" % (f, i))
                         break
 
+                    # replace dirs
+                    l = l.replace("${CMAKE_CURRENT_SOURCE_DIR}", cmake_base)
+                    
+
                     if not l:
                         pass
                     elif l.startswith("$"):
@@ -202,11 +206,14 @@ for hf in sorted(source_list(base, is_c_header)):
 import traceback
 for files in (global_c, global_h):
     for f in sorted(files):
-        i = 1
-        try:
-            for l in open(f, "r", encoding="utf8"):
-                i += 1
-        except:
-            print("Non utf8: %s:%d" % (f, i))
-            if i > 1:
-                traceback.print_exc()
+        if os.path.exists(f):
+            # ignore outside of our source tree
+            if "extern" not in f:
+                i = 1
+                try:
+                    for l in open(f, "r", encoding="utf8"):
+                        i += 1
+                except:
+                    print("Non utf8: %s:%d" % (f, i))
+                    if i > 1:
+                        traceback.print_exc()
index 7c2a2dd..da26b74 100644 (file)
@@ -55,6 +55,7 @@ set(SRC
        GHOST_IEvent.h
        GHOST_IEventConsumer.h
        GHOST_ISystem.h
+       GHOST_ISystemPaths.h
        GHOST_ITimerTask.h
        GHOST_IWindow.h
        GHOST_Path-api.h
@@ -78,6 +79,7 @@ set(SRC
        intern/GHOST_ModifierKeys.h
        intern/GHOST_NDOFManager.h
        intern/GHOST_System.h
+       intern/GHOST_SystemPaths.h
        intern/GHOST_TimerManager.h
        intern/GHOST_TimerTask.h
        intern/GHOST_Window.h
index 91e497b..106c09a 100644 (file)
@@ -871,7 +871,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
                                         * specifies a character code generated by a dead key. A dead key is a key that 
                                         * generates a character, such as the umlaut (double-dot), that is combined with 
                                         * another character to form a composite character. For example, the umlaut-O 
-                                        * character (Ö) is generated by typing the dead key for the umlaut character, and
+                                        * character (Ö) is generated by typing the dead key for the umlaut character, and
                                         * then typing the O key.
                                         */
                                case WM_SYSDEADCHAR: