mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
@@ -66,6 +66,8 @@ function initProjectConfig(projectConfig) {
|
||||
path.resolve(__dirname, 'node_modules/.cache');
|
||||
projectConfig.aceSoPath = projectConfig.aceSoPath || process.env.aceSoPath;
|
||||
projectConfig.xtsMode = /ets_loader_ark$/.test(__dirname);
|
||||
projectConfig.localProertiesPath = projectConfig.localProertiesPath || process.env.localProertiesPath
|
||||
projectConfig.projectProfilePath = projectConfig.projectProfilePath || process.env.projectProfilePath
|
||||
}
|
||||
|
||||
function loadEntryObj(projectConfig) {
|
||||
@@ -411,6 +413,17 @@ function saveAppResourcePath(appResourcePath, appResourcePathSavePath) {
|
||||
}
|
||||
}
|
||||
|
||||
function addSDKBuildDependencies(config) {
|
||||
if (projectConfig.localProertiesPath &&
|
||||
fs.existsSync(projectConfig.localProertiesPath) && config.cache) {
|
||||
config.cache.buildDependencies.config.push(projectConfig.localProertiesPath)
|
||||
}
|
||||
if (projectConfig.projectProfilePath &&
|
||||
fs.existsSync(projectConfig.projectProfilePath) && config.cache) {
|
||||
config.cache.buildDependencies.config.push(projectConfig.projectProfilePath)
|
||||
}
|
||||
}
|
||||
|
||||
const globalProgram = {
|
||||
program: null,
|
||||
watchProgram: null
|
||||
@@ -428,3 +441,4 @@ exports.abilityPagesFullPath = abilityPagesFullPath;
|
||||
exports.loadModuleInfo = loadModuleInfo;
|
||||
exports.systemModules = systemModules;
|
||||
exports.checkAppResourcePath = checkAppResourcePath;
|
||||
exports.addSDKBuildDependencies = addSDKBuildDependencies;
|
||||
|
||||
@@ -384,6 +384,7 @@ module.exports = (env, argv) => {
|
||||
|
||||
const appResourcePath = env.appResource || process.env.appResource;
|
||||
checkAppResourcePath(appResourcePath, config);
|
||||
addSDKBuildDependencies(config);
|
||||
config.output.library = projectConfig.hashProjectPath;
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user