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

Unified Diff: tools/gn/target.h

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit tests 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 side-by-side diff with in-line comments
Download patch
Index: tools/gn/target.h
diff --git a/tools/gn/target.h b/tools/gn/target.h
index fc752acece8896611b2f12047d723e69e3615bad..67e0e749a3be8a36aa6e0536e4efce55bf67d0dc 100644
--- a/tools/gn/target.h
+++ b/tools/gn/target.h
@@ -35,6 +35,7 @@ class Target : public Item {
GROUP,
EXECUTABLE,
SHARED_LIBRARY,
+ LOADABLE_MODULE,
STATIC_LIBRARY,
SOURCE_SET,
COPY_FILES,
@@ -115,6 +116,14 @@ class Target : public Item {
bool testonly() const { return testonly_; }
void set_testonly(bool value) { testonly_ = value; }
+ // Whether this target should produce a bundle on Darwin platforms. A bundle
+ // is a directory with a standardized hierarchical structure that holds
+ // executable code and the resources used by that code. Examples are
+ // application bundles (.app) or framework bundles (.framework) with the
+ // former corresponding to executables and the latter to shared libraries.
+ bool darwin_bundle() const { return darwin_bundle_; }
+ void set_darwin_bundle(bool value) { darwin_bundle_ = value; }
+
// Compile-time extra dependencies.
const FileList& inputs() const { return inputs_; }
FileList& inputs() { return inputs_; }
@@ -279,6 +288,7 @@ class Target : public Item {
bool check_includes_;
bool complete_static_lib_;
bool testonly_;
+ bool darwin_bundle_;
FileList inputs_;
std::vector<std::string> data_;

Powered by Google App Engine
This is Rietveld 408576698