Questions tagged [jam]

Jam is a build system originally developed by Perforce software. It can be used as a replacement for make. It has three major forks used by the Boost, FreeType, and Haiku projects.

47 questions
1
vote
0 answers

Boost compilation does not understand block comment in JAM file

I compile boost v1.72 from https://dl.bintray.com/boostorg/release/1_72_0/source Ubuntu 18.04.4 LTS gcc : 7.5.0 It compiles with error: boost_1_72_0/tools/build/src/tools/types/sass-type.jam:8: in load ERROR: rule "Copyright" unknown in module…
xibi
  • 81
  • 4
1
vote
1 answer

Access environment variables inside a jam configuration file

I am trying to cross compile Boost python library with x86_64-w64-mingw32 compiler on a Linux host. I need to specify the path to python libraries and include files inside my user-config.jam file. Instead of hard coding this path I would like to…
sbunny
  • 333
  • 3
  • 15
1
vote
1 answer

How to pass command line arguments in Jamfile?

I want to execute a certain command g++ in a Jamfile. However, I want to take the name of the file as command line input. In bash, this can be done as follows File temp.sh - #!/bin/bash g++ $1 And invoking it as bash temp.sh
Sashank
  • 558
  • 5
  • 18
1
vote
1 answer

Your Rank Is Pure Google Code Jam Assistance

I've been stuck on this question for a while (https://code.google.com/codejam/contest/635101/dashboard#s=p2). In the analysis of the question (https://code.google.com/codejam/contest/635101/dashboard#s=a&a=2) I understand that K is the rank of N in…
fragga
  • 13
  • 2
1
vote
1 answer

Out of source build with jam?

Is it possible to do an out-of-source build using Jam? If yes, how? (I've been sifting through the manual, but it makes no mention of this as far as I can see.) Note: I am using the "standard" Jam v2.5.
DevSolar
  • 59,831
  • 18
  • 119
  • 197
1
vote
1 answer

Create Folder using Jam

I'm using jam in my project to automate building in Visual Studio. I'm trying to move subdirectories and files from $folder to $folder1. $folder is containing a project $folder1 is empty. I use File to copy files. I try to copy files like this:…
President Camacho
  • 1,630
  • 5
  • 23
  • 40
1
vote
2 answers

How do I see g++ compiler output when using Jam?

I'm using Jam to compile a project, and it seems that no matter how high the debug level I set, I still can't see the details that I'm looking for. I want to use g++'s -M or -H flag to see which headers are being included (I want to include system…
s g
  • 4,057
  • 6
  • 39
  • 67
1
vote
1 answer

Is there a way to visualize dependencies in boost.build?

I have a large project that uses boost.build. I would like a way to view the dependency tree for specific build targets. For example: exe foo : foo.c /BAR//LIB : /MEOW//PUB ; The dependencies of foo would include all requirements of /BAR//LIB and…
Toonces
  • 11
  • 1
1
vote
0 answers

Jam and static libraries

I need to build Platinum C++ Libraries for static linking. What command(s) can I supply to jam for this?
Amani
  • 11,038
  • 16
  • 74
  • 118
1
vote
1 answer

Require.js build not concatenation scripts loaded with Jam

Following one of the chapters of "Developing Backbone.js Apllication" by Addy Osmani (O'Reilly) about Grunt-BBB (Backbone Boilerplate Buddy), I just couldn't manage to create a build profile. Here is the filesystem tree used for this : /builds …
m_vdbeek
  • 3,384
  • 5
  • 40
  • 76
1
vote
1 answer

How to pass in cflags through jam

I'm attempting to compile and link a DLL through Jam. This is a resource-only DLL, so I need to figure out how to pass in the /noentry flag to the linker through Jam. Here's what my Jamfile looks like right now: // need to figure out how to specify…
user1202422
  • 558
  • 2
  • 8
  • 15
0
votes
1 answer

Seperate build directory and include directory in Jam

I'd like to switch to using Jam as my build system. Currently, I have a src, include and build directories and I'm wondering how I can get Jam to put object files in the build directory and search for include files in the include directory.
Tom Leese
  • 17,977
  • 11
  • 41
  • 65
0
votes
1 answer

Google Code Jam: My solution to Train Timetable problem is failing

I'm trying to solve this problem from Google's Code Jam 2008: The problem is called Train Timetable and you can find the full explanation here: Code Jam - Train Timetable Note: I've decided to solve the problem with Node.js. My code is the…
Javier
  • 1
0
votes
1 answer

jamfile: copy files to different directories

SEARCH_SOURCE = $(DDODBC_LIB_DIR) ; InstallBin [ FDirName $(TOP) $(BUILDDIR) lib ] : $(DDODBC_LIBS) ; InstallBin [ FDirName $(TOP) $(BUILDDIR) datadirect V7 lib ] : $(DDODBC_LIBS) ; Only in the second directory can I find the copied files from…
zero_yu
  • 363
  • 3
  • 11
0
votes
0 answers

Boost build error of recursion in main target references

I want to conditionally use a library (with alternatives) for targets. I don't want to add conditions such as yes:foo everywhere but prefer to create a propagated feature. However, b2 generates errors for the following jam. import…