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 <4123478+tido64@users.noreply.github.com>

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

* fix: lint

Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 4, 2022
1 parent c070f5b commit 7be1d73
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 @@ -132,10 +132,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 7be1d73

Please sign in to comment.