Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 20, 2009, 2:58:51 PM (15 years ago)
Author:
rgrieder
Message:

Small changes for the include directories:

  • Our own directories get specified in src/libraries, src/orxonox and src/modules. This way you cannot include for example "CameraManager.h" in the core library.
  • All tolua bind header files now go to src/toluabind to avoid declaring every folder with such header files in src separately (for each module/library).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/external/tolua/lua/package.lua

    r5738 r5752  
    127127
    128128    if flags.H then
    129         local header = gsub(flags.H, '^.-([%w_]*%.[%w_]*)$', '%1')
    130         local package_lower = string.lower(self.name)
    131         output('#include "'..header..'"\n')
     129        output('#include "'..flags.H..'"\n')
    132130    end
    133131
     
    204202
    205203    if flags.H then
    206         local package_lower = string.lower(self.name)
    207         output('#include "'..package_lower..'/'..self.name..'Prereqs.h"\n')
     204        output('#include "'..flags.w..'/'..self.name..'Prereqs.h"\n')
    208205        output('/* Exported function */')
    209206        output('_'..self.name..'Export')
     
    222219-- *** Thanks to Ariel Manzur for fixing bugs in nested directives ***
    223220function extract_code(fn,s)
    224     local code = '\n$#include "'..string.lower(flags.n)..'/'..fn..'"\n'
     221    local code = '\n$#include "'..flags.w..'/'..fn..'"\n'
    225222    s= "\n" .. s .. "\n" -- add blank lines as sentinels
    226223
Note: See TracChangeset for help on using the changeset viewer.