diff options
author | Hoa Dinh <dvh@google.com> | 2014-11-12 13:04:18 -0800 |
---|---|---|
committer | Hoa Dinh <dvh@google.com> | 2014-11-12 13:04:18 -0800 |
commit | 73b2eb690b8d163527c93771837459c624c1b0fa (patch) | |
tree | 75d7ddf66842c9b1f95f3aa8f901194df8392d59 /src | |
parent | 8c6444bd77ac04a8182f83c2e346247418caec6e (diff) |
Build for Linux
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/cmake/core.cmake | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d4b12d2b..dd506d27 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -175,7 +175,9 @@ else() message(STATUS "Found zlib") endif() -pkg_check_modules (GLIB2 glib-2.0) +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +pkg_check_modules(GLIB2 glib-2.0) +ENDIF() file(GLOB_RECURSE source_files @@ -211,5 +213,3 @@ add_library(MailCore ${async_files} ${objc_files} ) - - diff --git a/src/cmake/core.cmake b/src/cmake/core.cmake index 4e69f881..c4d41e77 100644 --- a/src/cmake/core.cmake +++ b/src/cmake/core.cmake @@ -18,9 +18,13 @@ IF(APPLE) core/rfc822/MCMessageParserMac.mm ) ENDIF() - set(basetypes_files_apple + +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set(basetypes_files_linux core/basetypes/MCMainThreadGTK.cpp ) +ENDIF() + set(basetypes_files core/basetypes/MCArray.cc @@ -48,6 +52,7 @@ set(basetypes_files core/basetypes/MCValue.cc core/basetypes/ConvertUTF.c ${basetypes_files_apple} + ${basetypes_files_linux} ) set(imap_files |