# transfer common libcef_dll_wrapper files transfer_gypi_files(cef_dir, cef_paths2['libcef_dll_wrapper_sources_base'], \ 'libcef_dll/', libcef_dll_dir, options.quiet) transfer_gypi_files(cef_dir, cef_paths2['libcef_dll_wrapper_sources_common'], \ 'libcef_dll/', libcef_dll_dir, options.quiet) transfer_gypi_files(cef_dir, cef_paths['autogen_client_side'], \ 'libcef_dll/', libcef_dll_dir, options.quiet) # transfer additional files transfer_files(cef_dir, script_dir, os.path.join(script_dir, 'distrib'), \ mode, output_dir, options.quiet) # process cmake templates variables = dict(cef_paths.items() + cef_paths2.items()) process_cmake_template(os.path.join(cef_dir, 'CMakeLists.txt.in'), \ os.path.join(output_dir, 'CMakeLists.txt'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'cmake', 'cef_macros.cmake.in'), \ os.path.join(cmake_dir, 'cef_macros.cmake'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'cmake', 'cef_variables.cmake.in'), \ os.path.join(cmake_dir, 'cef_variables.cmake'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'cmake', 'FindCEF.cmake.in'), \ os.path.join(cmake_dir, 'FindCEF.cmake'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'libcef_dll', 'CMakeLists.txt.in'), \ os.path.join(libcef_dll_dir, 'CMakeLists.txt'), \ variables, options.quiet) if mode == 'standard':
paths_gypi = os.path.join(cef_dir, 'cef_paths2.gypi') data = read_file(paths_gypi) data = data.replace('tests/cefclient/', 'cefclient/') data = data.replace('tests/cefsimple/', 'cefsimple/') write_file(os.path.join(output_dir, 'cef_paths2.gypi'), data) copy_file(os.path.join(cef_dir, 'cef_paths.gypi'), \ os.path.join(output_dir, 'cef_paths.gypi'), options.quiet) # transfer additional files transfer_files(cef_dir, script_dir, os.path.join(script_dir, 'distrib/transfer.cfg'), \ output_dir, options.quiet) # process cmake templates variables = dict(cef_paths.items() + cef_paths2.items()) process_cmake_template(os.path.join(cef_dir, 'CMakeLists.txt.in'), \ os.path.join(output_dir, 'CMakeLists.txt'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'macros.cmake.in'), \ os.path.join(output_dir, 'macros.cmake'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'libcef_dll', 'CMakeLists.txt.in'), \ os.path.join(output_dir, 'libcef_dll', 'CMakeLists.txt'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'tests', 'cefclient', 'CMakeLists.txt.in'), \ os.path.join(output_dir, 'cefclient', 'CMakeLists.txt'), \ variables, options.quiet) process_cmake_template(os.path.join(cef_dir, 'tests', 'cefsimple', 'CMakeLists.txt.in'), \ os.path.join(output_dir, 'cefsimple', 'CMakeLists.txt'), \ variables, options.quiet) if platform == 'windows':