Welcome to mirror list, hosted at ThFree Co, Russian Federation.

codelite_project.tmpl « codelite « actions « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4d92241b92fb5082ff817c08e2695e8b53857c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<CodeLite_Project Name="<%= premake.esc(this.name) %>">
  <% premake.walksources(this, this.files, _CODELITE.files) %>
  <Settings Type="<%= _CODELITE.kind(this.kind) %>">
  <% for cfg in premake.eachconfig(this) do %>
  <%  local target = premake.gettargetfile(cfg, "target", nil, true) %>
    <Configuration Name="<%= premake.esc(cfg.name) %>" CompilerType="gnu <%= iif(cfg.language == "C", "gcc", "g++") %>" DebuggerType="GNU gdb debugger" Type="<%= _CODELITE.kind(cfg.kind) %>">
      <General OutputFile="<%= premake.esc(target) %>" IntermediateDirectory="<%= premake.esc(premake.getobjdir(cfg)) %>" Command="./<%= path.getname(target) %>" CommandArguments="" WorkingDirectory="<%= path.getdirectory(target) %>" PauseExecWhenProcTerminates="<%= iif(cfg.kind == "WindowedApp", "no", "yes") %>"/>
      <Compiler Required="yes" Options="<%= table.concat(table.join(premake.gcc.getcflags(cfg), premake.gcc.getcxxflags(cfg), cfg.buildoptions), ";") %>">
        <% for _,v in ipairs(cfg.includedirs) do %>
        <IncludePath Value="<%= premake.esc(v) %>"/>
        <% end %>
        <% for _,v in ipairs(cfg.defines) do %>
        <Preprocessor Value="<%= premake.esc(v) %>"/>
        <% end %>
      </Compiler>
      <Linker Required="yes" Options="<%= table.concat(table.join(premake.gcc.getldflags(cfg), cfg.linkoptions), ";") %>">
        <% for _,v in ipairs(premake.getlibdirs(cfg)) do %>
        <LibraryPath Value="<%= premake.esc(v) %>" />
        <% end %>
        <% for _,v in ipairs(premake.getlibnames(cfg)) do %>
        <Library Value="<%= premake.esc(v) %>" />
        <% end %>
      </Linker>
      <% if premake.findfile(cfg, ".rc") then %>
      <ResourceCompiler Required="yes" Options="<%= table.implode(table.join(cfg.defines,cfg.resdefines), "-D", ";", "") %><%= table.concat(cfg.resoptions, ";") %>">
        <% for _,v in ipairs(table.join(cfg.includedirs, cfg.resincludedirs)) do %>
        <IncludePath Value="<%= premake.esc(v) %>"/>
        <% end %>
      </ResourceCompiler>
      <% else %>
      <ResourceCompiler Required="no" Options=""/>
      <% end %>
      <% if #cfg.prebuildcommands > 0 then %>
      <PreBuild>
        <% for _,v in ipairs(cfg.prebuildcommands) do %>
        <Command Enabled="yes"><%= premake.esc(v) %></Command>
        <% end %>
      </PreBuild>
      <% end %>
      <% if #cfg.postbuildcommands > 0 then %>
      <PostBuild>
        <% for _,v in ipairs(cfg.postbuildcommands) do %>
        <Command Enabled="yes"><%= premake.esc(v) %></Command>
        <% end %>
      </PostBuild>
      <% end %>
      <CustomBuild Enabled="no">
        <CleanCommand></CleanCommand>
        <BuildCommand></BuildCommand>
        <SingleFileCommand></SingleFileCommand>
        <MakefileGenerationCommand></MakefileGenerationCommand>
        <ThirdPartyToolName>None</ThirdPartyToolName>
        <WorkingDirectory></WorkingDirectory>
      </CustomBuild>
      <AdditionalRules>
        <CustomPostBuild></CustomPostBuild>
        <CustomPreBuild></CustomPreBuild>
      </AdditionalRules>
    </Configuration>
  <%end %>
  </Settings>
  <% for _,cfgname in ipairs(this.configurations) do %>
  <Dependencies name="<%= cfgname %>">
    <% for _,dep in ipairs(premake.getdependencies(this)) do %>
    <Project Name="<%= dep.name %>"/>
    <% end %>
  </Dependencies>
  <% end %>
</CodeLite_Project>