mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
@@ -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)
|
||||
|
||||
|
||||
@@ -753,16 +753,11 @@ class MachCommandConditions(object):
|
||||
@staticmethod
|
||||
def is_b2g(cls):
|
||||
"""Must have a B2G build."""
|
||||
if hasattr(cls, 'substs'):
|
||||
return cls.substs.get('MOZ_WIDGET_TOOLKIT') == 'gonk'
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def is_b2g_desktop(cls):
|
||||
"""Must have a B2G desktop build."""
|
||||
if hasattr(cls, 'substs'):
|
||||
return cls.substs.get('MOZ_BUILD_APP') == 'b2g' and \
|
||||
cls.substs.get('MOZ_WIDGET_TOOLKIT') != 'gonk'
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -37,7 +37,7 @@ def build_dict(config, env=os.environ):
|
||||
known_os = {"Linux": "linux",
|
||||
"WINNT": "win",
|
||||
"Darwin": "mac",
|
||||
"Android": "b2g" if substs.get("MOZ_WIDGET_TOOLKIT") == "gonk" else "android"}
|
||||
"Android": "android"}
|
||||
if o in known_os:
|
||||
d["os"] = known_os[o]
|
||||
else:
|
||||
@@ -111,14 +111,6 @@ def build_dict(config, env=os.environ):
|
||||
|
||||
return p
|
||||
|
||||
if d['buildapp'] == 'b2g':
|
||||
if d['toolkit'] == 'gonk':
|
||||
return 'emulator'
|
||||
|
||||
if d['bits'] == 64:
|
||||
return 'linux64_gecko'
|
||||
return 'linux32_gecko'
|
||||
|
||||
if d['buildapp'] == 'mobile/android':
|
||||
if d['processor'] == 'x86':
|
||||
return 'android-x86'
|
||||
|
||||
@@ -80,7 +80,7 @@ ALL_TESTS = {
|
||||
"reason": "bug 820380",
|
||||
"relpath": "test_0201_app_launch_apply_update.js",
|
||||
"run-sequentially": "Launches application.",
|
||||
"skip-if": "toolkit == 'gonk' || os == 'android'",
|
||||
"skip-if": os == 'android'",
|
||||
"tail": ""
|
||||
},
|
||||
{
|
||||
@@ -96,7 +96,7 @@ ALL_TESTS = {
|
||||
"reason": "bug 820380",
|
||||
"relpath": "test_0201_app_launch_apply_update.js",
|
||||
"run-sequentially": "Launches application.",
|
||||
"skip-if": "toolkit == 'gonk' || os == 'android'",
|
||||
"skip-if": os == 'android'",
|
||||
"tail": ""
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user