Skip to content

Commit

Permalink
fix: Make paths in the CmakeLists scripts Windows friendly (#1734)
Browse files Browse the repository at this point in the history
* Fixing the paths to be windows friendly

* Update packages/cli-platform-android/src/config/index.ts

Co-authored-by: Tommy Nguyen <[email protected]>

* Update packages/cli-platform-android/src/config/index.ts

* fix: lint

Co-authored-by: Michał Pierzchała <[email protected]>
Co-authored-by: Tommy Nguyen <[email protected]>
  • Loading branch information
3 people committed Nov 4, 2022
1 parent 7fc6f44 commit 2fbdfd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli-platform-android/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ export function dependencyConfig(
const androidMkPath = userConfig.androidMkPath
? path.join(sourceDir, userConfig.androidMkPath)
: path.join(sourceDir, 'build/generated/source/codegen/jni/Android.mk');
const cmakeListsPath = userConfig.cmakeListsPath
let cmakeListsPath = userConfig.cmakeListsPath
? path.join(sourceDir, userConfig.cmakeListsPath)
: path.join(sourceDir, 'build/generated/source/codegen/jni/CMakeLists.txt');

if (process.platform === 'win32') {
cmakeListsPath = cmakeListsPath.replace(/\\/g, '/');
}
return {
sourceDir,
packageImportPath,
Expand Down

0 comments on commit 2fbdfd0

Please sign in to comment.