Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: cmake/CMakeLists.txt

Issue 1835573002: [CMake fixes] Linux X11 pixel format and Windows compilation fix (Closed) Base URL: git@github.com:google/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cmake/SkUserConfig.h.in » ('j') | cmake/SkUserConfig.h.in » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cmake/CMakeLists.txt
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index b375e59f453731ef58a1fc70ad12f04c0f58729f..d540bd1e61bbfb04502cbcb0f82e14780c095ea7 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -248,6 +248,7 @@ endif()
if (WIN32)
list (APPEND libs FontSub.lib Usp10.lib)
+ list (APPEND public_defines "-DSK_BUILD_FOR_WIN32")
Marco A. 2016/03/25 14:10:27 Specifically this is needed when compiling on a Wi
mtklein 2016/03/25 14:15:12 Let's have src/ports/SkOSEnvironment.cpp #include
endif()
find_package(OpenGL REQUIRED)
@@ -292,6 +293,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Release)
else()
set (SK_RELEASE 0)
endif()
+if (UNIX AND NOT APPLE)
+ set (SK_SAMPLES_FOR_X 1)
+else()
+ set (SK_SAMPLES_FOR_X 0)
+endif()
configure_file ("SkUserConfig.h.in" "${userconfig_directory}/SkUserConfig.h")
# skia_link_arguments.txt
« no previous file with comments | « no previous file | cmake/SkUserConfig.h.in » ('j') | cmake/SkUserConfig.h.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698