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

Side by Side Diff: cmake/CMakeLists.txt

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « bench/nanobench.cpp ('k') | dm/DM.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Boilerplate. 1 # Boilerplate.
2 cmake_minimum_required (VERSION 3.1) # First version with CMAKE_CXX_STANDARD. 2 cmake_minimum_required (VERSION 3.1) # First version with CMAKE_CXX_STANDARD.
3 project (skimake) 3 project (skimake)
4 set (CMAKE_CXX_STANDARD 11) 4 set (CMAKE_CXX_STANDARD 11)
5 5
6 # Default to Release mode. We're mainly targeting Skia users, not Skia develope rs. 6 # Default to Release mode. We're mainly targeting Skia users, not Skia develope rs.
7 if (NOT CMAKE_BUILD_TYPE) 7 if (NOT CMAKE_BUILD_TYPE)
8 set (CMAKE_BUILD_TYPE Release) 8 set (CMAKE_BUILD_TYPE Release)
9 endif () 9 endif ()
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL MIPS) 83 if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL MIPS)
84 remove_srcs(../src/*mips* ../src/*MIPS*) 84 remove_srcs(../src/*mips* ../src/*MIPS*)
85 endif() 85 endif()
86 86
87 # Make our ports choices. 87 # Make our ports choices.
88 remove_srcs( 88 remove_srcs(
89 ../src/*moz* # We're probably not Mozilla. 89 ../src/*moz* # We're probably not Mozilla.
90 ../src/gpu/GrContextFactory.cpp # For internal testing only . 90 ../src/gpu/GrContextFactory.cpp # For internal testing only .
91 ../src/gpu/gl/GrGLCreateNativeInterface_none.cpp 91 ../src/gpu/gl/GrGLCreateNativeInterface_none.cpp
92 ../src/gpu/gl/GrGLDefaultInterface_none.cpp 92 ../src/gpu/gl/GrGLDefaultInterface_none.cpp
93 ../src/gpu/gl/SkCreatePlatformGLContext*.cpp # For internal testing only .
94 ../src/gpu/gl/command_buffer/* 93 ../src/gpu/gl/command_buffer/*
95 ../src/gpu/gl/egl/* 94 ../src/gpu/gl/egl/*
96 ../src/gpu/gl/glfw/* 95 ../src/gpu/gl/glfw/*
97 ../src/gpu/gl/iOS/* 96 ../src/gpu/gl/iOS/*
98 ../src/gpu/vk/* 97 ../src/gpu/vk/*
99 ../src/opts/SkBitmapProcState_opts_none.cpp 98 ../src/opts/SkBitmapProcState_opts_none.cpp
100 ../src/opts/SkBlitMask_opts_none.cpp 99 ../src/opts/SkBlitMask_opts_none.cpp
101 ../src/opts/SkBlitRow_opts_none.cpp 100 ../src/opts/SkBlitRow_opts_none.cpp
102 ../src/ports/SkFontMgr_empty_factory.cpp 101 ../src/ports/SkFontMgr_empty_factory.cpp
103 ../src/ports/SkGlobalInitialization_chromium.cpp 102 ../src/ports/SkGlobalInitialization_chromium.cpp
(...skipping 10 matching lines...) Expand all
114 endif() 113 endif()
115 114
116 if (WIN32) 115 if (WIN32)
117 if(SKIA_GDI) 116 if(SKIA_GDI)
118 remove_srcs(../src/ports/SkFontMgr_win_dw_factory.cpp) 117 remove_srcs(../src/ports/SkFontMgr_win_dw_factory.cpp)
119 else() 118 else()
120 remove_srcs(../src/ports/SkFontMgr_win_gdi_factory.cpp) 119 remove_srcs(../src/ports/SkFontMgr_win_gdi_factory.cpp)
121 endif() 120 endif()
122 endif() 121 endif()
123 122
124 remove_srcs(../src/gpu/gl/angle/*) # TODO
125
126 # Certain files must be compiled with support for SSSE3, SSE4.1, AVX, or AVX2 in trinsics. 123 # Certain files must be compiled with support for SSSE3, SSE4.1, AVX, or AVX2 in trinsics.
127 file (GLOB_RECURSE ssse3_srcs ../src/*ssse3*.cpp ../src/*SSSE3*.cpp) 124 file (GLOB_RECURSE ssse3_srcs ../src/*ssse3*.cpp ../src/*SSSE3*.cpp)
128 file (GLOB_RECURSE sse41_srcs ../src/*sse4*.cpp ../src/*SSE4*.cpp) 125 file (GLOB_RECURSE sse41_srcs ../src/*sse4*.cpp ../src/*SSE4*.cpp)
129 file (GLOB_RECURSE avx_srcs ../src/*_avx.cpp) 126 file (GLOB_RECURSE avx_srcs ../src/*_avx.cpp)
130 file (GLOB_RECURSE avx2_srcs ../src/*_avx2.cpp) 127 file (GLOB_RECURSE avx2_srcs ../src/*_avx2.cpp)
131 set_source_files_properties(${ssse3_srcs} PROPERTIES COMPILE_FLAGS -mssse3) 128 set_source_files_properties(${ssse3_srcs} PROPERTIES COMPILE_FLAGS -mssse3)
132 set_source_files_properties(${sse41_srcs} PROPERTIES COMPILE_FLAGS -msse4.1) 129 set_source_files_properties(${sse41_srcs} PROPERTIES COMPILE_FLAGS -msse4.1)
133 set_source_files_properties(${avx_srcs} PROPERTIES COMPILE_FLAGS -mavx) 130 set_source_files_properties(${avx_srcs} PROPERTIES COMPILE_FLAGS -mavx)
134 set_source_files_properties(${avx2_srcs} PROPERTIES COMPILE_FLAGS -mavx2) 131 set_source_files_properties(${avx2_srcs} PROPERTIES COMPILE_FLAGS -mavx2)
135 132
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") 331 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n")
335 endif () 332 endif ()
336 endforeach() 333 endforeach()
337 endif() 334 endif()
338 endforeach() 335 endforeach()
339 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") 336 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n")
340 337
341 # Now build a simple example app that uses Skia via libskia.so. 338 # Now build a simple example app that uses Skia via libskia.so.
342 add_executable(example example.cpp) 339 add_executable(example example.cpp)
343 target_link_libraries(example skia ${OPENGL_LIBRARIES}) 340 target_link_libraries(example skia ${OPENGL_LIBRARIES})
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | dm/DM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698