☰
Current Page
Main Menu
Home
Home
Editing
BuildrForC
Edit
Preview
h1
h2
h3
Keybinding
default
vim
emacs
Markup
Markdown
Plain Text
Pod
RDoc
reStructuredText
AsciiDoc
BibTeX
Creole
MediaWiki
Org-mode
Textile
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
--- title: BuildrForC --- # Concepts * Maven compatible repo * Installs dependencies to local repo * need an 'install' task that extracts packages (and generates include paths?) * Sets a JAVA CLASSPATH. Use this for the Linker and Include paths? # Example ## Header only project repositories.remote << 'file:///deploy-test/repo' repositories.release_to = 'file:///deploy-test/repo' define 'Base' do task :default => :package task :compile do end project.group = :Modular project.version = '1.0' package.include(_('Enum')) package.exclude('*/.git', '*/.svn') package :zip end ## Shared library projec require 'buildr/gcc' repositories.remote << 'file:///deploy-test/repo' repositories.release_to = 'file:///deploy-test/repo' BASE = transitive('Modular:Base:zip:1.0') DEPS = BASE API = ['inc', 'lib'] EXCLUDE = ['*.swp'] SRC = ['src'] my_layout = Layout.new my_layout[:source, :main, :c] = 'src' my_layout[:target, :main, :obj] = 'obj' define 'Slave', :layout=>my_layout do package\_with\_sources project.version = '1.1' project.group = :Modular compile.using(:gcc) compile.with BASE package :zip package.include(API) package.exclude(EXCLUDE) #package(:sources).include(API,SRC) #package(:sources).exclude(EXCLUDE) end ## Application repositories.remote << 'file:///deploy-test/repo' repositories.release_to = 'file:///deploy-test/repo' SLAVE = transitive('Slave:Slave:zip:1.1') DEPS = SLAVE define 'SomeApp' do project.version = '0.1.0' compile.with DEPS package :zip build do system "cc -I../Base/ -I../Slave/inc -Iinc ../Slave/lib/slave.o src/someapp.c -o someapp.out" end end [1]: BuildrForC?action=sourceblock&num=1 [2]: BuildrForC?action=sourceblock&num=2 [3]: BuildrForC?action=sourceblock&num=3 <!-- vim: filetype=markdown -->
Uploading file...
Sidebar
# SideBar * [Home][1] * [Projects][2] * * * <!-- --> * [Code][3] * [Tech][4] * [Network][5] * [MediaCentre][6] * [UAV][7] * * * <!-- --> * [Travel][8] * [Music][9] * [Horse Riding][10] * [Study][11] * [Games][12] * [Other Activities][13] * * * <!-- --> * [Car][14] * [House][15] * [Watch][16] * [Clothing][17] * [Miscellany][18] * * * [1]: /Home [2]: /Projects [3]: /Code/Code [4]: /Tech/Tech [5]: /Network/Network [6]: /MediaCentre/MediaCentre [7]: /UAV/UAV [8]: /Travel/Travel [9]: /Music/Music [10]: /HorseRiding/HorseRiding [11]: /Study/Study [12]: /Games/Games [13]: /Do/Do [14]: /Car/Car [15]: /House/House [16]: /Watch/Watch [17]: /Clothing/Clothing [18]: /Miscellany/Miscellany <!-- vim: filetype=markdown -->
Edit message:
Cancel