diff options
Diffstat (limited to 'python/mozbuild/mozbuild/backend/cpp_eclipse.py')
-rw-r--r-- | python/mozbuild/mozbuild/backend/cpp_eclipse.py | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/python/mozbuild/mozbuild/backend/cpp_eclipse.py b/python/mozbuild/mozbuild/backend/cpp_eclipse.py index cbdbdde8c..ae89df5b2 100644 --- a/python/mozbuild/mozbuild/backend/cpp_eclipse.py +++ b/python/mozbuild/mozbuild/backend/cpp_eclipse.py @@ -183,25 +183,12 @@ class CppEclipseBackend(CommonBackend): exe_path = os.path.join(exe_path, self._appname + self._bin_suffix) - if self.environment.substs['MOZ_WIDGET_TOOLKIT'] != 'gonk': - main_gecko_launch = os.path.join(launch_dir, 'gecko.launch') - with open(main_gecko_launch, 'wb') as fh: - launch = GECKO_LAUNCH_CONFIG_TEMPLATE - launch = launch.replace('@LAUNCH_PROGRAM@', exe_path) - launch = launch.replace('@LAUNCH_ARGS@', '-P -no-remote') - fh.write(launch) - - if self.environment.substs['MOZ_WIDGET_TOOLKIT'] == 'gonk': - b2g_flash = os.path.join(launch_dir, 'b2g-flash.launch') - with open(b2g_flash, 'wb') as fh: - # We assume that the srcdir is inside the b2g tree. - # If that's not the case the user can always adjust the path - # from the eclipse IDE. - fastxul_path = os.path.join(self.environment.topsrcdir, '..', 'scripts', 'fastxul.sh') - launch = B2GFLASH_LAUNCH_CONFIG_TEMPLATE - launch = launch.replace('@LAUNCH_PROGRAM@', fastxul_path) - launch = launch.replace('@OBJDIR@', self.environment.topobjdir) - fh.write(launch) + main_gecko_launch = os.path.join(launch_dir, 'gecko.launch') + with open(main_gecko_launch, 'wb') as fh: + launch = GECKO_LAUNCH_CONFIG_TEMPLATE + launch = launch.replace('@LAUNCH_PROGRAM@', exe_path) + launch = launch.replace('@LAUNCH_ARGS@', '-P -no-remote') + fh.write(launch) #TODO Add more launch configs (and delegate calls to mach) |