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

Unified Diff: bin/bin.gypi

Issue 8772016: Refactor the gypi files to eliminate some redundancy. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « no previous file | bin/builtin_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/bin.gypi
===================================================================
--- bin/bin.gypi (revision 1997)
+++ bin/bin.gypi (working copy)
@@ -20,27 +20,12 @@
'msvs_cygwin_dirs': ['<(cygwin_dir)'],
}],
],
- 'sources': [
- 'builtin.dart',
- 'buffer_list.dart',
- 'directory.dart',
- 'directory_impl.dart',
- 'eventhandler.dart',
- 'file.dart',
- 'file_impl.dart',
- 'input_stream.dart',
- 'output_stream.dart',
- 'string_stream.dart',
- 'platform.dart',
- 'platform_impl.dart',
- 'process.dart',
- 'process_impl.dart',
- 'socket.dart',
- 'socket_impl.dart',
- 'socket_stream.dart',
- 'timer.dart',
- 'timer_impl.dart',
+ 'includes': [
+ 'builtin_sources.gypi',
],
+ 'sources/': [
+ ['exclude', '\\.(cc|h)$'],
+ ],
'actions': [
{
'action_name': 'generate_builtin_cc',
@@ -75,46 +60,13 @@
'sources': [
'builtin_natives.cc',
'builtin.h',
- 'dartutils.h',
- 'dartutils.cc',
- 'directory.h',
- 'directory.cc',
- 'directory_posix.cc',
- 'directory_win.cc',
- 'eventhandler.cc',
- 'eventhandler.h',
- 'eventhandler_linux.cc',
- 'eventhandler_linux.h',
- 'eventhandler_macos.cc',
- 'eventhandler_macos.h',
- 'eventhandler_win.cc',
- 'eventhandler_win.h',
- 'file.cc',
- 'file.h',
- 'file_linux.cc',
- 'file_macos.cc',
- 'file_win.cc',
- 'fdutils.h',
- 'fdutils_linux.cc',
- 'fdutils_macos.cc',
- 'globals.h',
- 'platform.cc',
- 'platform.h',
- 'platform_linux.cc',
- 'platform_macos.cc',
- 'platform_win.cc',
- 'process.cc',
- 'process.h',
- 'process_linux.cc',
- 'process_macos.cc',
- 'process_win.cc',
- 'socket.cc',
- 'socket.h',
- 'socket_linux.cc',
- 'socket_macos.cc',
- 'socket_win.cc',
- 'set.h',
],
+ 'includes': [
+ 'builtin_sources.gypi',
+ ],
+ 'sources/': [
+ ['exclude', '_test\\.(cc|h)$'],
+ ],
'conditions': [
['OS=="win"', {'sources/' : [
['exclude', 'fdutils.h'],
@@ -139,31 +91,6 @@
],
},
{
- # Completely statically linked dart binary.
- 'target_name': 'dart_no_snapshot',
- 'type': 'executable',
- 'dependencies': [
- 'libdart_withcore',
- 'libdart_builtin',
- ],
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'main.cc',
- 'snapshot_empty.cc',
- 'builtin.cc',
- # Include generated source files.
- '<(builtin_cc_file)',
- ],
- 'conditions': [
- ['OS=="win"', {
- 'link_settings': {
- 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
- },
- }]],
- },
- {
# Completely statically linked binary for generating snapshots.
'target_name': 'gen_snapshot',
'type': 'executable',
@@ -257,6 +184,7 @@
'type': 'executable',
'dependencies': [
'libdart_withcore',
+ 'libdart_builtin',
'generate_snapshot_test_dat_file',
],
'include_dirs': [
@@ -265,48 +193,9 @@
],
'sources': [
'run_vm_tests.cc',
- 'dartutils.h',
- 'dartutils.cc',
- 'directory.h',
- 'directory.cc',
- 'directory_posix.cc',
- 'directory_win.cc',
- 'eventhandler.cc',
- 'eventhandler.h',
- 'eventhandler_linux.cc',
- 'eventhandler_linux.h',
- 'eventhandler_macos.cc',
- 'eventhandler_macos.h',
- 'eventhandler_win.cc',
- 'eventhandler_win.h',
- 'file.cc',
- 'file.h',
- 'file_test.cc',
- 'file_linux.cc',
- 'file_macos.cc',
- 'file_win.cc',
- 'fdutils.h',
- 'fdutils_linux.cc',
- 'fdutils_macos.cc',
- 'platform.cc',
- 'platform.h',
- 'platform_linux.cc',
- 'platform_macos.cc',
- 'platform_win.cc',
- 'process.cc',
- 'process.h',
- 'process_linux.cc',
- 'process_macos.cc',
- 'process_win.cc',
- 'socket.cc',
- 'socket.h',
- 'socket_linux.cc',
- 'socket_macos.cc',
- 'socket_win.cc',
- 'set.h',
- 'set_test.cc',
],
'includes': [
+ 'builtin_sources.gypi',
'../vm/vm_sources.gypi',
],
'defines': [
@@ -317,56 +206,8 @@
['exclude', '\\.(cc|h)$'],
['include', '_test\\.(cc|h)$'],
['include', 'run_vm_tests.cc'],
- ['include', 'dart_api_impl.cc'],
- ['include', 'dartutils.h'],
- ['include', 'dartutils.cc'],
- ['include', 'directory.h'],
- ['include', 'directory.cc'],
- ['include', 'eventhandler.cc'],
- ['include', 'eventhandler.h'],
- ['include', 'file.cc'],
- ['include', 'file.h'],
- ['include', 'file_test.cc'],
- ['include', 'platform.cc'],
- ['include', 'platform.h'],
- ['include', 'process.cc'],
- ['include', 'process.h'],
- ['include', 'socket.cc'],
- ['include', 'socket.h'],
- ['include', 'set_test.cc'],
],
'conditions': [
- ['OS=="linux"', {'sources/' : [
- ['include', 'directory_posix.cc'],
- ['include', 'eventhandler_linux.cc'],
- ['include', 'eventhandler_linux.h'],
- ['include', 'fdutils.h'],
- ['include', 'fdutils_linux.cc'],
- ['include', 'file_linux.cc'],
- ['include', 'platform_linux.cc'],
- ['include', 'process_linux.cc'],
- ['include', 'socket_linux.cc'],
- ]}],
- ['OS=="mac"', {'sources/' : [
- ['include', 'directory_posix.cc'],
- ['include', 'eventhandler_macos.cc'],
- ['include', 'eventhandler_macos.h'],
- ['include', 'fdutils.h'],
- ['include', 'fdutils_macos.cc'],
- ['include', 'file_macos.cc'],
- ['include', 'platform_macos.cc'],
- ['include', 'process_macos.cc'],
- ['include', 'socket_macos.cc'],
- ]}],
- ['OS=="win"', {'sources/' : [
- ['include', 'directory_win.cc'],
- ['include', 'eventhandler_win.cc'],
- ['include', 'eventhandler_win.h'],
- ['include', 'file_win.cc'],
- ['include', 'platform_win.cc'],
- ['include', 'process_win.cc'],
- ['include', 'socket_win.cc'],
- ]}],
['OS=="win"', {
'link_settings': {
'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
« no previous file with comments | « no previous file | bin/builtin_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698