OLD | NEW |
1 # Input Format Reference | 1 # Input Format Reference |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Primitive Types | 5 ## Primitive Types |
6 | 6 |
7 The following primitive types are found within input files: | 7 The following primitive types are found within input files: |
8 | 8 |
9 * String values, which may be represented by enclosing them in | 9 * String values, which may be represented by enclosing them in |
10 `'single quotes'` or `"double quotes"`. By convention, single | 10 `'single quotes'` or `"double quotes"`. By convention, single |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 { | 922 { |
923 'sources': [ | 923 'sources': [ |
924 'io_posix.cc', | 924 'io_posix.cc', |
925 'io_win.cc', | 925 'io_win.cc', |
926 'launcher_mac.cc', | 926 'launcher_mac.cc', |
927 'main.cc', | 927 'main.cc', |
928 'platform_util_linux.cc', | 928 'platform_util_linux.cc', |
929 'platform_util_mac.mm', | 929 'platform_util_mac.mm', |
930 ], | 930 ], |
931 'sources/': [ | 931 'sources/': [ |
932 [['exclude', '_win\\.cc$']], | 932 ['exclude', '_win\\.cc$'], |
933 ], | 933 ], |
934 'conditions': [ | 934 'conditions': [ |
935 ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], | 935 ['OS!="linux"', {'sources/': [['exclude', '_linux\\.cc$']]}], |
936 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.cc|mm?$']]}], | 936 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.cc|mm?$']]}], |
937 ['OS=="win"', {'sources/': [ | 937 ['OS=="win"', {'sources/': [ |
938 [['include', '_win\\.cc$']], | 938 ['include', '_win\\.cc$'], |
939 [['exclude', '_posix\\.cc$']], | 939 ['exclude', '_posix\\.cc$'], |
940 ]}], | 940 ]}], |
941 ], | 941 ], |
942 } | 942 } |
943 ``` | 943 ``` |
944 | 944 |
945 After the pattern list is applied, `sources` will have the following | 945 After the pattern list is applied, `sources` will have the following |
946 values, depending on the setting of `OS`: | 946 values, depending on the setting of `OS`: |
947 | 947 |
948 * When `OS` is `linux`: `['io_posix.cc', 'main.cc', | 948 * When `OS` is `linux`: `['io_posix.cc', 'main.cc', |
949 'platform_util_linux.cc']` | 949 'platform_util_linux.cc']` |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 | 1073 |
1074 Given this input, the `sources` list will take on different values based | 1074 Given this input, the `sources` list will take on different values based |
1075 on the `OS` variable. | 1075 on the `OS` variable. |
1076 | 1076 |
1077 * If `OS` is `"mac"`, `sources` will contain `['common.cc', | 1077 * If `OS` is `"mac"`, `sources` will contain `['common.cc', |
1078 'mac_util.mm', 'posix_main.cc', 'mac_impl.mm']`. | 1078 'mac_util.mm', 'posix_main.cc', 'mac_impl.mm']`. |
1079 * If `OS` is `"win"`, `sources` will contain `['common.cc', | 1079 * If `OS` is `"win"`, `sources` will contain `['common.cc', |
1080 'win_main.cc', 'win_impl.cc']`. | 1080 'win_main.cc', 'win_impl.cc']`. |
1081 * If `OS` is any other value such as `"linux"`, `sources` will contain | 1081 * If `OS` is any other value such as `"linux"`, `sources` will contain |
1082 `['common.cc', 'posix_main.cc', 'default_impl.cc']`. | 1082 `['common.cc', 'posix_main.cc', 'default_impl.cc']`. |
OLD | NEW |