var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvBuild=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _platformManager=require("../core/platformManager");
var _logger=require("../core/systemManager/logger");
var _constants=require("../core/constants");










var _sdkWebpack=require("../sdk-webpack");
var _sdkTizen=require("../sdk-tizen");
var _sdkWebos=require("../sdk-webos");
var _sdkFirefox=require("../sdk-firefox");
var _engineManager=require("../core/engineManager");

var taskRnvBuild=function taskRnvBuild(c,parentTask,originTask){var platform;return _regenerator.default.async(function taskRnvBuild$(_context){while(1){switch(_context.prev=_context.next){case 0:
(0,_logger.logTask)('taskRnvBuild',"parent:"+parentTask);

platform=c.platform;_context.next=4;return _regenerator.default.awrap(

(0,_engineManager.executeOrSkipTask)(c,_constants.TASK_PACKAGE,_constants.TASK_BUILD,originTask));case 4:_context.t0=

platform;_context.next=_context.t0===
_constants.WEB?7:_context.t0===
_constants.CHROMECAST?7:_context.t0===


_constants.KAIOS?10:_context.t0===
_constants.FIREFOX_OS?10:_context.t0===
_constants.FIREFOX_TV?10:_context.t0===


_constants.TIZEN?13:_context.t0===
_constants.TIZEN_MOBILE?13:_context.t0===
_constants.TIZEN_WATCH?13:_context.t0===


_constants.WEBOS?16:19;break;case 7:_context.next=9;return _regenerator.default.awrap((0,_sdkWebpack.buildWeb)(c));case 9:return _context.abrupt("return");case 10:_context.next=12;return _regenerator.default.awrap((0,_sdkFirefox.buildFirefoxProject)(c,platform));case 12:return _context.abrupt("return");case 13:_context.next=15;return _regenerator.default.awrap((0,_sdkTizen.buildTizenProject)(c,platform));case 15:return _context.abrupt("return");case 16:_context.next=18;return _regenerator.default.awrap(
(0,_sdkWebos.buildWebOSProject)(c,platform));case 18:return _context.abrupt("return");case 19:


(0,_platformManager.logErrorPlatform)(c);case 20:case"end":return _context.stop();}}},null,null,null,Promise);};exports.taskRnvBuild=taskRnvBuild;var _default=



{
description:'Build project binary',
fn:taskRnvBuild,
task:'build',
params:_constants.PARAMS.withBase(_constants.PARAMS.withConfigure()),
platforms:[
_constants.WEB,
_constants.TIZEN,
_constants.WEBOS,
_constants.TIZEN_MOBILE,
_constants.TIZEN_WATCH,
_constants.KAIOS,
_constants.FIREFOX_OS,
_constants.FIREFOX_TV,
_constants.CHROMECAST]};exports.default=_default;
//# sourceMappingURL=task.rnv.build.js.map