Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode does not support custom build commands #940

Open
wraitii opened this issue Nov 4, 2017 · 1 comment
Open

Xcode does not support custom build commands #940

wraitii opened this issue Nov 4, 2017 · 1 comment

Comments

@wraitii
Copy link

wraitii commented Nov 4, 2017

It seems the Xcode module does not handle custom build commands. We just switched to using them for 0 A.D.'s build system for the tests, and the Xcode test project doesn't work.

This is apparently the subject of a "forgotten" PR.

This can be tested by building 0 A.D., but the following "minimal" example works too:

workspace "Example"
	configurations { "Release" }
	platforms { "macOS" }
	location ("workspaces/")
	language "C++"
	targetdir ("build/output")
	objdir ("build/obj")
	nativewchar "Off"
	buildoptions { "-Wall", "-Wextra" }

project "Example"
	kind "ConsoleApp"

	files { "main.cpp" }

	filter "files:*.cpp"
		buildmessage 'Doing stuff'
		buildcommands {
			'touch somefile.cpp'
		}

		buildoutputs { 'somefile.cpp' }

@na-Itms
Copy link

na-Itms commented Nov 4, 2017

To clarify the issue we have, we wrote a small premake module for cxxtest here: https://trac.wildfiregames.com/browser/ps/trunk/build/premake/cxxtest/cxxtest.lua
The code works around the limitations of the gmake action (we may look into the gmake2 action in the future) so the issue here is not #223.

Thanks in advance! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants