[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 28 Jul 2010 10:35:37 +0000 (10:35 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 28 Jul 2010 10:35:37 +0000 (10:35 +0000)
- Add ntdllsys to build.

svn path=/branches/cmake-bringup/; revision=48326

lib/CMakeLists.txt
lib/ntdllsys/CMakeLists.txt [new file with mode: 0644]

index d80dcee..380f934 100644 (file)
@@ -13,6 +13,7 @@ add_subdirectory(epsapi)
 add_subdirectory(fslib)
 add_subdirectory(lsalib)
 add_subdirectory(nls)
+add_subdirectory(ntdllsys)
 add_subdirectory(pseh)
 add_subdirectory(recyclebin)
 add_subdirectory(rossym)
diff --git a/lib/ntdllsys/CMakeLists.txt b/lib/ntdllsys/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4d7afa6
--- /dev/null
@@ -0,0 +1,13 @@
+
+get_directory_property(defines COMPILE_DEFINITIONS)
+
+foreach(arg ${defines})
+  set(result_defs "${result_defs} -D${arg}")
+endforeach(arg ${defines})
+
+set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -x assembler-with-cpp -o <OBJECT> ${result_defs} -D__ASM__ <FLAGS> -c <SOURCE>")
+
+set_source_files_properties(${REACTOS_BINARY_DIR}/lib/ntdllsys/ntdll.S PROPERTIES GENERATED TRUE)
+
+add_library(ntdllsys ${REACTOS_BINARY_DIR}/lib/ntdllsys/ntdll.S)
+add_dependencies(ntdllsys nci_resources)