Skip to content

Commit

Permalink
adding comments to bracket section of makefile generation related to …
Browse files Browse the repository at this point in the history
…new build & test
  • Loading branch information
nwolek committed Oct 2, 2013
1 parent 6dc0c72 commit fb4bd38
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Shared/jamomalib.rb
Expand Up @@ -1744,10 +1744,18 @@ def generate_makefile(projectdir, projectname, forcedCompiler=NIL, path_to_modul
makefile.write("\trm -rf #{build_temp}\n")
makefile.write("\n")

##########
# BEGIN test.cpp handling
#
# The following section is used initiate testing during building whenever a "test.cpp" file is present within a project.
# This testing procedure was developed as an alternative to testing within the Ruby implementation.
#
##########

test_dependency_foundation = ""
test_dependency_foundation = "../../../Foundation/library/build/libJamomaFoundation.a" if project_type == "extension"
test_dependency_dsp = ""
# test_dependency_dsp = "../../../DSP/library/build/libJamomaDSP.a" if layer_name == "DSP"
# test_dependency_dsp = "build/libJamomaDSP.a" if layer_name == "DSP"

makefile.write("build_and_test: | lipo \n")
makefile.write("\techo Testing 32-bit \n")
Expand All @@ -1763,6 +1771,10 @@ def generate_makefile(projectdir, projectname, forcedCompiler=NIL, path_to_modul
makefile.write("\tif [ -f test.cpp ]; then rm -f build/test64; $(CC_64) test.cpp -g -std=c++11 -stdlib=libc++ -DTT_PLATFORM_MAC ${INCLUDES} build/lib$(NAME).a -o build/test64 ; fi \n")
makefile.write("\techo Skipping Tests \n")
makefile.write("\n")

##########
# END test.cpp handling
##########

makefile.write("install: | build_and_test\n")
if max && mac?
Expand Down

0 comments on commit fb4bd38

Please sign in to comment.