1# Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights 2# reserved. Use of this source code is governed by a BSD-style license that 3# can be found in the LICENSE file. 4 5# Append platform specific sources to a list of sources. 6macro(LIBCEF_APPEND_PLATFORM_SOURCES name_of_list) 7 if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND ${name_of_list}_MAC) 8 list(APPEND ${name_of_list} ${${name_of_list}_MAC}) 9 endif() 10 if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" AND ${name_of_list}_LINUX) 11 list(APPEND ${name_of_list} ${${name_of_list}_LINUX}) 12 endif() 13 if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" AND ${name_of_list}_WINDOWS) 14 list(APPEND ${name_of_list} ${${name_of_list}_WINDOWS}) 15 endif() 16endmacro() 17 18set(CEF_TARGET libcef_dll_wrapper) 19 20{{ 21 'prefix': 'libcef', 22 'library': '${CEF_TARGET}', 23 'append_macro': 'LIBCEF_APPEND_PLATFORM_SOURCES', 24 'includes': [ 25 'includes_common', 26 'includes_common_capi', 27 'autogen_cpp_includes', 28 'includes_capi', 29 'autogen_capi_includes', 30 'includes_wrapper', 31 'includes_wrapper_mac:MAC', 32 'includes_win:WINDOWS', 33 'includes_win_capi:WINDOWS', 34 'includes_mac:MAC', 35 'includes_mac_capi:MAC', 36 'includes_linux:LINUX', 37 'includes_linux_capi:LINUX', 38 'libcef_dll_wrapper_sources_base', 39 'libcef_dll_wrapper_sources_common', 40 'libcef_dll_wrapper_sources_mac:MAC', 41 'autogen_client_side', 42 ], 43}} 44SET_LIBRARY_TARGET_PROPERTIES(${CEF_TARGET}) 45 46# Creating the CEF wrapper library. Do not define this for dependent targets. 47target_compile_definitions(${CEF_TARGET} PRIVATE -DWRAPPING_CEF_SHARED) 48 49# Remove the default "lib" prefix from the resulting library. 50set_target_properties(${CEF_TARGET} PROPERTIES PREFIX "") 51