|
From: <tho...@us...> - 2014-04-12 08:46:07
|
Revision: 547
http://sourceforge.net/p/cgreen/code/547
Author: thomasnilsson
Date: 2014-04-12 08:45:59 +0000 (Sat, 12 Apr 2014)
Log Message:
-----------
Added a first attempt at a setup script for Cygwin development (since Cygwin is a DLL platform it uses Windows procedure for locating DLLs this bites us every time, the build directories must be a head of any installed versions in the PATH)
Added Paths:
-----------
trunk/cgreen/cygwin-setup.sh
Added: trunk/cgreen/cygwin-setup.sh
===================================================================
--- trunk/cgreen/cygwin-setup.sh (rev 0)
+++ trunk/cgreen/cygwin-setup.sh 2014-04-12 08:45:59 UTC (rev 547)
@@ -0,0 +1,29 @@
+#! /bin/sh
+#
+# I'm making some notes here for future reference: CYGWIN is *not*
+# WIN32, but it *is* a DLL-platform So it loads DLL:s the same way
+# Windows does, namely from the path. That means that for tests to run
+# using the freshly build DLL:s in the build tree both include paths
+# but also the PATH need to be prepended by the directory of the
+# DLL. This could be done with something like:
+#
+# set_tests_properties(SomeTest PROPERTIES ENVIRONMENT "PATH=c:\somedir;c:\otherdir")
+#
+# which I found at http://stackoverflow.com/a/1079072/204658. The
+# thing to work out is what CMAKE variables point to that
+# directory. The follwing should be evolved to do just that, so that a
+# CYGWIN developer could just source this script and then forget about
+# it.
+#
+
+# The following is a first (non-successful) attempt at ensuring that
+# the script is sourced:
+if [[ $_ != $0 ]]; then
+ echo "Sourced"
+else
+ echo "Subshell"
+fi
+
+# And here's the meat
+export PATH="$PWD/build/build-c/src":"$PWD/build/build-c++/src":$PATH
+export PATH="$PWD/build/build-c/tools":"$PWD/build/build-c++/tools":$PATH
Property changes on: trunk/cgreen/cygwin-setup.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|