Difference between revisions of "User:Michelle2 Zenovka/cmake-notes"

From Second Life Wiki
Jump to navigation Jump to search
(New page: === Turn on verbose info === develop.py build VERBOSE=1 === Pass custom flags === develop.py configure -DMYVARIABLE:BOOL=TRUE === Mess around with cmakes build arch === cmake uses ...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Turn on verbose info ===
=== Turn on verbose info ===


Line 10: Line 9:
=== Mess around with cmakes build arch ===
=== Mess around with cmakes build arch ===


cmake uses uname on linux to determine the arch, By replacing /bin/uname with a script that echos what you want. eg "echo "i686" you can fake archs
cmake uses uname on linux to determine the arch, By replacing /bin/uname with a script that echos what you want. I use this when testing in my 32bit chroot on my amd64 system.
 
#!/bin/sh
x=$1
if [ $x == "-m" ] ; then
echo "i686"
fi
 
if [ $x == "-s" ] ; then
        echo "Linux"
fi
if [ $x == "-r" ] ; then
echo "2.6.24-1-i686"
fi
if [ $x == "-p" ] ; then
        echo "unknown"
fi

Latest revision as of 11:50, 30 July 2008

Turn on verbose info

develop.py build VERBOSE=1

Pass custom flags

develop.py configure -DMYVARIABLE:BOOL=TRUE

Mess around with cmakes build arch

cmake uses uname on linux to determine the arch, By replacing /bin/uname with a script that echos what you want. I use this when testing in my 32bit chroot on my amd64 system.

#!/bin/sh
x=$1

if [ $x == "-m" ] ; then
	echo "i686"
fi
 
if [ $x == "-s" ] ; then
       echo "Linux"
fi

if [ $x == "-r" ] ; then
	echo "2.6.24-1-i686"
fi

if [ $x == "-p" ] ; then
       echo "unknown"
fi