Changeset 2239 for code/branches/buildsystem/src/tolua/lua
- Timestamp:
- Nov 20, 2008, 10:13:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/src/tolua/lua/package.lua
r2236 r2239 128 128 if flags.H then 129 129 local header = gsub(flags.H, '^.-([%w_]*%.[%w_]*)$', '%1') 130 output('#include "'..header..'"\n') 130 local package_lower = string.lower(self.name) 131 output('#include "'..package_lower..'/'..header..'"\n') 131 132 end 132 133 … … 203 204 204 205 if flags.H then 205 output('#include "'..self.name..'Prereqs.h"\n') 206 local package_lower = string.lower(self.name) 207 output('#include "'..package_lower..'/'..self.name..'Prereqs.h"\n') 206 208 output('/* Exported function */') 207 209 output('_'..self.name..'Export') … … 220 222 -- *** Thanks to Ariel Manzur for fixing bugs in nested directives *** 221 223 function extract_code(fn,s) 222 local code = '\n$#include "'.. fn..'"\n'224 local code = '\n$#include "'..string.lower(flags.n)..'/'..fn..'"\n' 223 225 s= "\n" .. s .. "\n" -- add blank lines as sentinels 224 226
Note: See TracChangeset
for help on using the changeset viewer.