1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# This file is gn GN version of modules.gypi. 6 7blink_modules_output_dir = "$root_gen_dir/blink/modules" 8 9_gypi = exec_script( 10 "//build/gypi_to_gn.py", 11 [ rebase_path("modules.gypi"), 12 "--replace=<(SHARED_INTERMEDIATE_DIR)=$root_gen_dir", 13 "--replace=<(blink_modules_output_dir)=$blink_modules_output_dir" ], 14 "scope", 15 [ "modules.gypi" ]) 16 17_tmp_modules_idl_files = _gypi.modules_idl_files 18# modules_idl_files has a magic variable in it that is an embedder hook, 19# remove that since it's not a file (need to do this before rebasing). 20_tmp_modules_idl_files -= [ 21 "<@(extra_blink_module_idl_files)", 22] 23modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath") 24 25# 'partial interface' or target (right side of) 'implements' 26modules_dependency_idl_files = 27 get_path_info(_gypi.modules_dependency_idl_files, "abspath") 28 29modules_event_idl_files = 30 get_path_info(_gypi.modules_event_idl_files, "abspath") 31 32# interfaces that inherit from Event 33generated_modules_files = 34 get_path_info(_gypi.generated_modules_files, "abspath") 35 36# Remove GYP variables from the list (need to do this before rebasing). 37_tmp_modules_files = _gypi.modules_files 38_tmp_modules_files -= [ 39 "<@(extra_blink_module_files)", 40 "<@(generated_modules_files)", 41] 42modules_files = get_path_info(_tmp_modules_files, "abspath") 43modules_files += generated_modules_files # Account for GYP var expansion. 44 45# 'partial interface' or target (right side of) 'implements' 46modules_testing_dependency_idl_files = 47 get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath") 48 49modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath") 50modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath") 51