-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Yes, it does generate hxproj files, but I'd prefer having proper Kha platform template. I already partially made it with a batch wrapper monstrosity, but without few changes/additions in khamake itself, proper support is impossible. What I'm talking about:
- Add either
--displayflag ordisplayplatform target, which prints hxml file with paths relative tokhafile.js(not frombuildfolder) to stdout.
Current workaround: Printing it frombuild/project-<target>.hxmland adding-D kha_output=build\<platform>\dummyin order to fix asset macro errors. (It have broken-cp <target>-build/Sourcespath, but it's empty anyway in regards of Haxe code) - Make it possible to do
--runwithout forced compilation.
It is required, as "Test Project" in FD for such frameworks works in 2 passes, first it run build command (--compile) and then run command (--run), and currently khamake have now way of making run command without compilation.
Current workaround: For windows doing direct launch ofbuild/<target>/<Projectname>.exe, for other platforms - still uses forced compilation. - (optional, but preferable) Add
--cleancommand that would clean up build directory from target files.
Current workaround: Just plain delete those files manually.
What is wrong with current generated hxproj approach? A lot, actually.
- They are not in root folder and because of that
Projectpanel is completely messed up with build folders being shown always and actual sources hidden inReferences. - Each call of khamake regenerates said file.
- Windows proj file in Test Project tries to run
run_windows.bat, which does not exists. - Compilation directly from FD is problematic (for example I can't compile it at all as my OS have Haxe4-preview2 installed as main haxe which FD uses for compilation)
- It generates it's own hxproj for each and every target. FD have a support for several targets (right next to Release/Debug build dropdown), which renders that generation pretty redundant.
Benefits from making proper template? As noted above - one hxproj file, guaranteed compilation (as long as it works for khamake), guaranteed launch, haxe completion, compilation and running managed directly by khamake.
Metadata
Metadata
Assignees
Labels
No labels