mirror of
https://github.com/boostorg/build.git
synced 2026-07-21 13:13:39 +00:00
Update examples to support VMS.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
import toolset ;
|
||||
import os ;
|
||||
|
||||
project : requirements <tblgen>../tblgen//tblgen ;
|
||||
|
||||
@@ -28,3 +29,11 @@ actions tblgen bind COMMAND
|
||||
{
|
||||
$(COMMAND:E=tblgen) > $(<)
|
||||
}
|
||||
|
||||
if [ os.name ] = VMS
|
||||
{
|
||||
actions tblgen bind COMMAND
|
||||
{
|
||||
PIPE MCR $(COMMAND:WE=tblgen) > $(<:W)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
# which are relevant to your case, remove everything else, and then change names
|
||||
# and actions to taste.
|
||||
|
||||
import os ;
|
||||
|
||||
# Declare a new target type. This allows Boost.Build to do something sensible
|
||||
# when targets with the .verbatim extension are found in sources.
|
||||
import type ;
|
||||
@@ -49,3 +51,11 @@ actions inline-file
|
||||
{
|
||||
"./inline_file.py" $(<) $(>)
|
||||
}
|
||||
|
||||
if [ os.name ] = VMS
|
||||
{
|
||||
actions inline-file
|
||||
{
|
||||
python inline_file.py $(<:W) $(>:W)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ import generators ;
|
||||
import feature ;
|
||||
import common ;
|
||||
import "class" : new ;
|
||||
import os ;
|
||||
|
||||
type.register GCI : gci ;
|
||||
|
||||
@@ -75,3 +76,11 @@ actions touch
|
||||
{
|
||||
$(TOUCH) $(<)
|
||||
}
|
||||
|
||||
if [ os.name ] = VMS
|
||||
{
|
||||
actions touch
|
||||
{
|
||||
$(TOUCH) $(<:W)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import feature ;
|
||||
import toolset ;
|
||||
import os ;
|
||||
|
||||
path-constant HERE : . ;
|
||||
make main.cpp : main_cpp.pro : @do-something ;
|
||||
@@ -11,3 +12,11 @@ actions do-something
|
||||
{
|
||||
"$(PYTHON:E=python)" "$(HERE)/foo.py" "$(>)" "$(<)"
|
||||
}
|
||||
|
||||
if [ os.name ] = VMS
|
||||
{
|
||||
actions do-something
|
||||
{
|
||||
$(PYTHON:E=python) $(HERE:W)foo.py $(>:W) $(<:W)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Bye!\n";
|
||||
return 1
|
||||
return EXIT_FAILURE
|
||||
}
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Bye!\n";
|
||||
return 1;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "Hi!\n";
|
||||
return 0;
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user