@@ -79,12 +79,11 @@ sub pre_workspace {
79
79
}
80
80
}
81
81
82
- # TODO(sonndinh): Some platform information is configurable such as
83
- # the path to an INTEGRITY installation, bsp name.
82
+ # TODO(sonndinh):
84
83
# Some other information is specific to ACE such as its root directory,
85
84
# its compilation and linking requirements (C++ version, flags, etc).
86
85
# These can be put in some form of input to MPC instead of hardcoded here.
87
- # Update: We can use environment variables and command-line options:
86
+ # We can use environment variables and command-line options:
88
87
# --expand_vars, -use_env. Or can use the -relative command-line option.
89
88
# The first option requires setting environment variables.
90
89
# The second option requires passing parameters to the -relative option.
@@ -95,6 +94,7 @@ sub pre_workspace {
95
94
my $ghs_os_dir = defined $ENV {GHS_OS_DIR } ? $ENV {GHS_OS_DIR } : ' C:\ghs\int1146' ;
96
95
my $ghs_bsp_name = defined $ENV {GHS_BSP_NAME } ? $ENV {GHS_BSP_NAME } : " sim800" ;
97
96
97
+ # # Require that ACE_ROOT and TAO_ROOT environment variables are set.
98
98
my $ace_root = $ENV {ACE_ROOT };
99
99
my $tao_root = $ENV {TAO_ROOT };
100
100
@@ -103,9 +103,10 @@ sub pre_workspace {
103
103
" macro __OS_DIR=$ghs_os_dir$crlf " ,
104
104
" macro __BSP_NAME=$ghs_bsp_name$crlf " ,
105
105
" macro __BSP_DIR=\$ {__OS_DIR}\\\$ {__BSP_NAME}$crlf " ,
106
- # "macro ACE_ROOT=%expand_path(.)$crlf",
107
- # "macro __BUILD_DIR=\${ACE_ROOT}\\build$crlf",
108
- " macro __BUILD_DIR=%expand_path (.)\\ build$crlf " ,
106
+ " macro ACE_ROOT=$ace_root$crlf " ,
107
+ " macro __BUILD_DIR=\$ {ACE_ROOT}\\ build$crlf " ,
108
+ # "macro __BUILD_DIR=%expand_path(.)\\build$crlf",
109
+ " macro TAO_ROOT=$tao_root$crlf " ,
109
110
" macro __LIBS_DIR_BASE=\$ {__OS_DIR}\\ libs$crlf " ,
110
111
" primaryTarget=$tgt$crlf " ,
111
112
" customization=\$ {__OS_DIR}\\ target\\ integrity.bod$crlf " ,
@@ -116,9 +117,10 @@ sub pre_workspace {
116
117
" \t --libcxx$crlf " ,
117
118
" \t :sourceDir=.$crlf " ,
118
119
" \t :optionsFile=\$ {__OS_DIR}\\ target\\\$ {__BSP_NAME}.opt$crlf " ,
119
- # "\t-I\${ACE_ROOT}$crlf",
120
- " \t -I$ace_root$crlf " ,
121
- " \t -I$tao_root$crlf " ,
120
+ " \t -I\$ {ACE_ROOT}$crlf " ,
121
+ " \t -I\$ {TAO_ROOT}$crlf " ,
122
+ # "\t-I$ace_root$crlf",
123
+ # "\t-I$tao_root$crlf",
122
124
" \t -language=cxx$crlf " ,
123
125
" \t --new_style_casts$crlf " ,
124
126
" \t -non_shared$crlf " ;
0 commit comments