Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: tools/gn/variables.cc

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« build/toolchain/mac/BUILD.gn ('K') | « tools/gn/variables.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/gn/variables.h" 5 #include "tools/gn/variables.h"
6 6
7 namespace variables { 7 namespace variables {
8 8
9 // Built-in variables ---------------------------------------------------------- 9 // Built-in variables ----------------------------------------------------------
10 10
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 "\n" 604 "\n"
605 " Only one console pool target can run at any one time in Ninja. Refer\n" 605 " Only one console pool target can run at any one time in Ninja. Refer\n"
606 " to the Ninja documentation on the console pool for more info.\n" 606 " to the Ninja documentation on the console pool for more info.\n"
607 "\n" 607 "\n"
608 "Example\n" 608 "Example\n"
609 "\n" 609 "\n"
610 " action(\"long_action_with_progress_logs\") {\n" 610 " action(\"long_action_with_progress_logs\") {\n"
611 " console = true\n" 611 " console = true\n"
612 " }\n"; 612 " }\n";
613 613
614 const char kDarwinBundle[] = "darwin_bundle";
615 const char kDarwinBundle_HelpShort[] =
616 "darwin_bundle: [boolean] Produce a bundle on Darwin platforms";
617 const char kDarwinBundle_Help[] =
618 "darwin_bundle: Produce an .app or .framework directory.\n"
619 "\n"
620 " Bundles on Darwin platforms are directories with standardized\n"
621 " hierarchical structures that hold executable code and the resources\n"
622 " used by that code.\n"
623 "\n"
624 "Example\n"
625 "\n"
626 " executable(\"combustible_lemons_app\") {\n"
627 " darwin_bundle = true\n"
628 " }\n";
629
614 const char kData[] = "data"; 630 const char kData[] = "data";
615 const char kData_HelpShort[] = 631 const char kData_HelpShort[] =
616 "data: [file list] Runtime data file dependencies."; 632 "data: [file list] Runtime data file dependencies.";
617 const char kData_Help[] = 633 const char kData_Help[] =
618 "data: Runtime data file dependencies.\n" 634 "data: Runtime data file dependencies.\n"
619 "\n" 635 "\n"
620 " Lists files or directories required to run the given target. These are\n" 636 " Lists files or directories required to run the given target. These are\n"
621 " typically data files or directories of data files. The paths are\n" 637 " typically data files or directories of data files. The paths are\n"
622 " interpreted as being relative to the current build file. Since these\n" 638 " interpreted as being relative to the current build file. Since these\n"
623 " are runtime dependencies, they do not affect which targets are built\n" 639 " are runtime dependencies, they do not affect which targets are built\n"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 COMMON_LIB_INHERITANCE_HELP 950 COMMON_LIB_INHERITANCE_HELP
935 COMMON_ORDERING_HELP 951 COMMON_ORDERING_HELP
936 "\n" 952 "\n"
937 "Examples\n" 953 "Examples\n"
938 "\n" 954 "\n"
939 " On Windows:\n" 955 " On Windows:\n"
940 " libs = [ \"ctl3d.lib\" ]\n" 956 " libs = [ \"ctl3d.lib\" ]\n"
941 " On Linux:\n" 957 " On Linux:\n"
942 " libs = [ \"ld\" ]\n"; 958 " libs = [ \"ld\" ]\n";
943 959
960 const char kLoadableModule[] = "loadable_module";
961 const char kLoadableModule_HelpShort[] =
962 "loadable_module: [boolean] Produce a loadable module from a shared lib.";
963 const char kLoadableModule_Help[] =
964 "darwin_bundle: Produce a loadable module from a shared library target.\n"
965 "\n"
966 " Loadable modules are different from shared libraries in that they are\n"
967 " not linked at compile time and can only be dynamically loaded at\n"
968 " runtime.\n"
969 "\n"
970 " The flag only applies to \"shared_library\" targets.\n"
971 "\n"
972 "Example\n"
973 "\n"
974 " shared_library(\"combustible_lemons_lib\") {\n"
975 " loadable_module = true\n"
976 " }\n";
977
944 const char kOutputExtension[] = "output_extension"; 978 const char kOutputExtension[] = "output_extension";
945 const char kOutputExtension_HelpShort[] = 979 const char kOutputExtension_HelpShort[] =
946 "output_extension: [string] Value to use for the output's file extension."; 980 "output_extension: [string] Value to use for the output's file extension.";
947 const char kOutputExtension_Help[] = 981 const char kOutputExtension_Help[] =
948 "output_extension: Value to use for the output's file extension.\n" 982 "output_extension: Value to use for the output's file extension.\n"
949 "\n" 983 "\n"
950 " Normally the file extension for a target is based on the target\n" 984 " Normally the file extension for a target is based on the target\n"
951 " type and the operating system, but in rare cases you will need to\n" 985 " type and the operating system, but in rare cases you will need to\n"
952 " override the name (for example to use \"libfreetype.so.6\" instead\n" 986 " override the name (for example to use \"libfreetype.so.6\" instead\n"
953 " of libfreetype.so on Linux).\n" 987 " of libfreetype.so on Linux).\n"
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 INSERT_VARIABLE(Sources) 1445 INSERT_VARIABLE(Sources)
1412 INSERT_VARIABLE(Testonly) 1446 INSERT_VARIABLE(Testonly)
1413 INSERT_VARIABLE(Visibility) 1447 INSERT_VARIABLE(Visibility)
1414 } 1448 }
1415 return info_map; 1449 return info_map;
1416 } 1450 }
1417 1451
1418 #undef INSERT_VARIABLE 1452 #undef INSERT_VARIABLE
1419 1453
1420 } // namespace variables 1454 } // namespace variables
OLDNEW
« build/toolchain/mac/BUILD.gn ('K') | « tools/gn/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698