Commit Graph

4 Commits

Author SHA1 Message Date
Steve Cotton
866d1a7a6e Use argparse for add_source_file
Treat an argument of "--help" as a request to print help, instead of a filename
to add to the source lists.

Treat the arguments "src/foo.cpp" "src/foo.hpp" as two filenames, instead of
adding src/foo.cpp to target src/foo.hpp. The old command line

    ./add_source_file a b c

becomes

    ./add_source_file a --target b --target c

When saying that pbxproj is required, suggest optionally using a venv instead
of installing systemwide.
2024-01-26 12:03:05 +00:00
gfgtdf
8710ae0ee6 try to fix add_source_file 2023-03-18 19:04:39 +01:00
Pentarctagon
34369f62d2 Fix a couple issues with add_source_file. 2022-08-24 20:36:59 -05:00
Tommy
4d5d61f47c
A script to add new source files (#6948)
Usage: ./add_source_file <filename> [target ...]

Targets are "wesnoth", "wesnothd", "campaignd", "lua", "tests".
It defaults to the "wesnoth" target.

The 'pbxproj' python package is required to modify the Xcode project.

[ci skip]
2022-08-16 11:47:17 -05:00