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

Side by Side Diff: cmake/CMakeLists.txt

Issue 2346333002: Split SkFontConfigInterface globals and factory. (Closed)
Patch Set: Created 4 years, 3 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 function (remove_srcs) 45 function (remove_srcs)
46 file (GLOB_RECURSE to_remove ${ARGN}) 46 file (GLOB_RECURSE to_remove ${ARGN})
47 list (REMOVE_ITEM srcs ${to_remove}) 47 list (REMOVE_ITEM srcs ${to_remove})
48 set (srcs ${srcs} PARENT_SCOPE) 48 set (srcs ${srcs} PARENT_SCOPE)
49 endfunction() 49 endfunction()
50 50
51 # This file is empty and is only used to trick GYP. 51 # This file is empty and is only used to trick GYP.
52 remove_srcs (../src/core/SkForceCPlusPlusLinking.cpp) 52 remove_srcs (../src/core/SkForceCPlusPlusLinking.cpp)
53 # Chrome only? 53 # Chrome only?
54 remove_srcs (../src/ports/SkFontConfigInterface_direct.cpp 54 remove_srcs (../src/ports/SkFontConfigInterface.cpp
55 ../src/ports/SkFontConfigInterface_direct.cpp
55 ../src/ports/SkFontConfigInterface_direct_factory.cpp 56 ../src/ports/SkFontConfigInterface_direct_factory.cpp
56 ../src/ports/SkFontConfigInterface_direct_google3.cpp 57 ../src/ports/SkFontConfigInterface_direct_google3.cpp
57 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp 58 ../src/ports/SkFontConfigInterface_direct_google3_factory.cpp
58 ../src/ports/SkFontMgr_FontConfigInterface.cpp 59 ../src/ports/SkFontMgr_FontConfigInterface.cpp
59 ../src/ports/SkFontMgr_FontConfigInterface_factory.cpp) 60 ../src/ports/SkFontMgr_FontConfigInterface_factory.cpp)
60 # Alternative font managers. 61 # Alternative font managers.
61 remove_srcs (../src/ports/SkFontMgr_custom*.cpp) 62 remove_srcs (../src/ports/SkFontMgr_custom*.cpp)
62 # skslc main() 63 # skslc main()
63 remove_srcs (../src/sksl/SkSLMain.cpp) 64 remove_srcs (../src/sksl/SkSLMain.cpp)
64 65
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n") 357 file (APPEND ${skia_h_path} "#include \"${filename_component}\"\n")
357 endif () 358 endif ()
358 endforeach() 359 endforeach()
359 endif() 360 endif()
360 endforeach() 361 endforeach()
361 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n") 362 file(APPEND ${skia_h_path} "\n#endif // skia_DEFINED\n")
362 363
363 # Now build a simple example app that uses Skia via libskia.so. 364 # Now build a simple example app that uses Skia via libskia.so.
364 add_executable(example example.cpp) 365 add_executable(example example.cpp)
365 target_link_libraries(example skia ${OPENGL_LIBRARIES}) 366 target_link_libraries(example skia ${OPENGL_LIBRARIES})
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | gyp/ports.gyp » ('j') | include/ports/SkFontConfigInterface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698