[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 26 Jul 2010 16:39:47 +0000 (16:39 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 26 Jul 2010 16:39:47 +0000 (16:39 +0000)
- Add icu4ros to build.

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

lib/3rdparty/CMakeLists.txt
lib/3rdparty/icu4ros/CMakeLists.txt [new file with mode: 0644]

index 34dbf52..47c130a 100644 (file)
@@ -5,7 +5,7 @@ add_subdirectory(cardlib)
 add_subdirectory(expat)
 #add_subdirectory(freetype) # Add files by hand, not with a glob!
 add_subdirectory(fullfat)
 add_subdirectory(expat)
 #add_subdirectory(freetype) # Add files by hand, not with a glob!
 add_subdirectory(fullfat)
-#add_subdirectory(icu4ros) # Add files by hand, not with a glob??
+add_subdirectory(icu4ros)
 add_subdirectory(libsamplerate)
 add_subdirectory(libwine)
 add_subdirectory(libxml2)
 add_subdirectory(libsamplerate)
 add_subdirectory(libwine)
 add_subdirectory(libxml2)
diff --git a/lib/3rdparty/icu4ros/CMakeLists.txt b/lib/3rdparty/icu4ros/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ddd03d6
--- /dev/null
@@ -0,0 +1,52 @@
+include_directories(icu/source/common)
+include_directories(icu/source/i18n)
+
+add_definitions(-DHAVE_EXPAT_CONFIG_H)
+add_definitions(-DU_STATIC_IMPLEMENTATION)
+add_definitions(-DU_HAVE_INTTYPES_H)
+add_definitions(-DUCONFIG_NO_FILE_IO=1)
+add_definitions(-DICU_NO_USER_DATA_OVERRIDE=1)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti")
+
+set(SOURCE 
+  "stubs.cpp"
+  "icu/source/common/bmpset.cpp"
+  "icu/source/common/uhash_us.cpp"
+  "icu/source/common/uidna.cpp"
+  "icu/source/common/unifilt.cpp"
+  "icu/source/common/unifunct.cpp"
+  "icu/source/common/uniset.cpp"
+  "icu/source/common/unisetspan.cpp"
+  "icu/source/common/unistr.cpp"
+  "icu/source/common/unorm.cpp"
+  "icu/source/common/uobject.cpp"
+  "icu/source/common/uobject.cpp"
+  "icu/source/common/uset.cpp"
+  "icu/source/common/usprep.cpp"
+  "icu/source/common/uiter.cpp"
+  "icu/source/common/util.cpp"
+  "icu/source/common/cmemory.c"
+  "icu/source/common/cstring.c"
+  "icu/source/common/locmap.c"
+  "icu/source/common/punycode.c"
+  "icu/source/common/ubidi_props.c"
+  "icu/source/common/ucln_cmn.c"
+  "icu/source/common/ucmndata.c"
+  "icu/source/common/ucol_swp.c"
+  "icu/source/common/udata.c"
+  "icu/source/common/udatamem.c"
+  "icu/source/common/udataswp.c"
+  "icu/source/common/uhash.c"
+  "icu/source/common/uinit.c"
+  "icu/source/common/uinvchar.c"
+  "icu/source/common/umapfile.c"
+  "icu/source/common/umath.c"
+  "icu/source/common/umutex.c"
+  "icu/source/common/ustring.c"
+  "icu/source/common/ustrtrns.c"
+  "icu/source/common/utf_impl.c"
+  "icu/source/common/utrie.c"
+  )
+
+add_library(icu4ros ${SOURCE})
\ No newline at end of file