Home | History | Annotate | Download | only in modules
      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 
      7 blink_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 ]
     23 modules_idl_files = get_path_info(_tmp_modules_idl_files, "abspath")
     24 
     25 modules_dictionary_idl_files =
     26   get_path_info(_gypi.modules_dictionary_idl_files, "abspath")
     27 
     28 # 'partial interface' or target (right side of) 'implements'
     29 modules_dependency_idl_files =
     30   get_path_info(_gypi.modules_dependency_idl_files, "abspath")
     31 
     32 modules_event_idl_files =
     33   get_path_info(_gypi.modules_event_idl_files, "abspath")
     34 
     35 # interfaces that inherit from Event
     36 generated_modules_files =
     37   get_path_info(_gypi.generated_modules_files, "abspath")
     38 
     39 generated_modules_dictionary_files =
     40   get_path_info(_gypi.generated_modules_dictionary_files, "abspath")
     41 
     42 # Remove GYP variables from the list (need to do this before rebasing).
     43 _tmp_modules_files = _gypi.modules_files
     44 _tmp_modules_files -= [
     45   "<@(extra_blink_module_files)",
     46   "<@(generated_modules_dictionary_files)",
     47   "<@(generated_modules_files)",
     48 ]
     49 modules_files = get_path_info(_tmp_modules_files, "abspath")
     50 # Account for GYP var expansion.
     51 modules_files += generated_modules_files + generated_modules_dictionary_files
     52 
     53 # 'partial interface' or target (right side of) 'implements'
     54 modules_testing_dependency_idl_files =
     55   get_path_info(_gypi.modules_testing_dependency_idl_files, "abspath")
     56 
     57 modules_testing_files = get_path_info(_gypi.modules_testing_files, "abspath")
     58 modules_unittest_files = get_path_info(_gypi.modules_unittest_files, "abspath")
     59