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

Unified Diff: third_party/WebKit/Source/build/scripts/in_generator.py

Issue 2403583002: More changes to support hermetic Xcode toolchain in GN. (Closed)
Patch Set: Comments from thakis. Created 4 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: third_party/WebKit/Source/build/scripts/in_generator.py
diff --git a/third_party/WebKit/Source/build/scripts/in_generator.py b/third_party/WebKit/Source/build/scripts/in_generator.py
index 841f00e51541280a62ee7448b32b3c163bbfbeec..e90e62da119ab158dec78effa686919118698a03 100644
--- a/third_party/WebKit/Source/build/scripts/in_generator.py
+++ b/third_party/WebKit/Source/build/scripts/in_generator.py
@@ -26,6 +26,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+import os
import os.path
import shlex
import shutil
@@ -86,10 +87,16 @@ class Maker(object):
exit(1)
parser = optparse.OptionParser()
+
parser.add_option("--gperf", default="gperf")
+ parser.add_option("--developer_dir",
+ help='Path to Xcode.')
parser.add_option("--output_dir", default=os.getcwd())
options, args = parser.parse_args()
+ if options.developer_dir:
+ os.environ['DEVELOPER_DIR'] = options.developer_dir
+
writer = self._writer_class(args)
writer.set_gperf_path(options.gperf)
writer.write_files(options.output_dir)
« no previous file with comments | « third_party/WebKit/Source/build/scripts/gperf.py ('k') | third_party/WebKit/Source/build/scripts/scripts.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698