Skip to content

Conversation

@halx99
Copy link
Collaborator

@halx99 halx99 commented Jul 12, 2025

… common template files

Describe your changes

  • Add parameter -r for axmol new command

usage: axmol new HelloCpp -r

Issue ticket number and link

#2591

Checklist before requesting a review

For each PR

  • Add Copyright if it missed:
    - "Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."

  • I have performed a self-review of my code.

    Optional:

    • I have checked readme and add important infos to this PR.
    • I have added/adapted some tests too.

For core/new feature PR

  • I have checked readme and add important infos to this PR.
  • I have added thorough tests.

@halx99 halx99 added this to the 2.7.1 milestone Jul 12, 2025
@halx99 halx99 linked an issue Jul 12, 2025 that may be closed by this pull request
@paulocoutinhox
Copy link
Contributor

Hi,

I tried axmol -r and it throw error:

-- Build files have been written to: /Users/paulo/Developer/workspaces/cpp/axmol-extensions/build
1kiss: BUILD_ALL_OPTIONS=--config RelWithDebInfo --parallel 10, Count=4
1kiss: cmake --build /Users/paulo/Developer/workspaces/cpp/axmol-extensions/build --config RelWithDebInfo --parallel 10 --target axmol-extensions
2025-07-12 00:37:44.671 xcodebuild[9714:30097566] Writing error result bundle to /var/folders/05/s441x_6n2dq2wxgxspz7q12r0000gp/T/ResultBundle_2025-12-07_00-37-0044.xcresult
xcodebuild: error: The project 'axmol-ex.xcodeproj' does not contain a target named 'axmol-extensions'.
build.ps1: /Users/paulo/Developer/workspaces/cpp/axmol/tools/cmdline/axmol.ps1:91
Line |
  91 |          . $build_script @sub_args
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~
     | Build fail, ret=65
paulo ~/Developer/workspaces/cpp/axmol-extensions [main] $ 

Steps:

git clone https://github.com/paulocoutinhox/axmol-extensions.git
cd axmol-extensions
axmol -r

@halx99
Copy link
Collaborator Author

halx99 commented Jul 12, 2025

The option -r is for axmol new command, not for default axmol build command

@halx99
Copy link
Collaborator Author

halx99 commented Jul 12, 2025

image

@paulocoutinhox
Copy link
Contributor

Hi,

I make some tests here and it is working.

axmol new -r -p dev.axmol.hellocpp axmol-extensions

I also tried axmol new -r -p dev.axmol.hellocpp axmol-extensions -d . to don't need be outside the project folder, but it create another folder axmol-extensions inside. It is intentional?

@halx99
Copy link
Collaborator Author

halx99 commented Jul 12, 2025

yes, the command must run outside of axmol project directory

@halx99
Copy link
Collaborator Author

halx99 commented Jul 12, 2025

The -d means parent of project dir, so axmol new axmol-extensions -r -d .. shoud work inside project dir

@paulocoutinhox
Copy link
Contributor

Thanks

@halx99 halx99 merged commit 34e69ed into dev Jul 12, 2025
15 checks passed
@halx99 halx99 deleted the improve-axmol-cmdline-new branch July 12, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command to recreate the missing projects like Flutter

3 participants