delphivm 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Thorfile.thor +2 -2
  3. data/delphivm.gemspec +1 -1
  4. data/delphivm.sublime-project +8 -0
  5. data/delphivm.sublime-workspace +453 -0
  6. data/lib/build_target.rb +84 -0
  7. data/lib/delphivm.rb +77 -137
  8. data/lib/delphivm/generator.rb +123 -0
  9. data/lib/delphivm/ide_services.rb +8 -3
  10. data/lib/delphivm/runner.rb +5 -8
  11. data/lib/delphivm/version.rb +3 -4
  12. data/lib/dvm/gen/app.thor +84 -0
  13. data/lib/dvm/ide.thor +3 -2
  14. data/lib/dvm/project.thor +1 -1
  15. data/lib/extensions.rb +1 -1
  16. data/templates/delphi/app.tt/.gitignore.tt +18 -0
  17. data/templates/delphi/app.tt/BDS.bat.tt +9 -0
  18. data/templates/delphi/app.tt/BUILD.bat.tt +19 -0
  19. data/templates/delphi/app.tt/README.md.tt +16 -0
  20. data/templates/delphi/app.tt/VERSION +1 -0
  21. data/templates/delphi/app.tt/license.txt +61 -0
  22. data/templates/delphi/app.tt/src/@D170/%{app_name}App.groupproj +45 -0
  23. data/templates/delphi/app.tt/src/source.optset +18 -0
  24. data/templates/delphi/dproj/sample.tt/samples/@D170/%{name}.dpr +12 -0
  25. data/templates/delphi/dproj/sample.tt/samples/@D170/%{name}.dproj +146 -0
  26. data/templates/delphi/dproj/src.tt/src/@D170/%{app_name}.dpr +12 -0
  27. data/templates/delphi/dproj/src.tt/src/@D170/%{app_name}.dproj +174 -0
  28. data/templates/delphi/dproj/test.tt/tests/@D170/%{name}.dpr +24 -0
  29. data/templates/delphi/dproj/test.tt/tests/@D170/%{name}.dproj +146 -0
  30. data/templates/delphi/samples.tt/samples/@D170/%{app_name}Samples.groupproj +44 -0
  31. data/templates/delphi/samples.tt/samples/samples.optset +19 -0
  32. data/templates/delphi/tests.tt/tests/@D170/%{app_name}Tests.groupproj +44 -0
  33. data/templates/delphi/tests.tt/tests/tests.optset +35 -0
  34. metadata +26 -2
@@ -1,13 +1,10 @@
1
- require 'thor/runner'
1
+ require 'delphivm/version'
2
+ require 'delphivm/ide_services'
3
+ require 'delphivm/dsl'
2
4
 
3
- class Delphivm
4
- EXE_NAME = File.basename($0, '.rb')
5
-
6
- PATH_TO_VENDOR = ROOT + 'vendor'
7
- PATH_TO_VENDOR_CACHE = PATH_TO_VENDOR + 'cache'
8
- PATH_TO_VENDOR_IMPORTS = PATH_TO_VENDOR + 'imports'
9
- DVM_IMPORTS_FILE = PATH_TO_VENDOR + 'imports.dvm'
5
+ require 'thor/runner'
10
6
 
7
+ class Delphivm
11
8
  class Runner
12
9
  # remove some tasks not needed
13
10
  remove_task :install, :installed, :uninstall, :update
@@ -1,7 +1,6 @@
1
- # encoding: UTF-8
2
- class Delphivm
3
- VERSION = "0.8.1"
4
- include(VersionInfo)
1
+ class Delphivm
2
+ include VersionInfo
3
+ self.VERSION = "0.9.0"
5
4
  self.VERSION.file_name = __FILE__
6
5
  end
7
6
 
@@ -0,0 +1,84 @@
1
+ require 'securerandom'
2
+ require 'delphivm/generator'
3
+
4
+
5
+ class Delphivm::Gen
6
+
7
+ class App < Thor::Group
8
+ include Generator
9
+
10
+ argument :name, type: :string, desc: "app name to be executed"
11
+ class_option :samples, type: :boolean, default: true, desc: "include samples"
12
+ class_option :tests, type: :boolean, default: true, desc: "include tests"
13
+ class_option :idever, type: :string, default: 'D170', desc: "IDE version"
14
+
15
+ desc "Generate app structure in current dir"
16
+
17
+ def execute
18
+ self.class.output_folder = name.snake_case
19
+ do_folder_template self.class.output_folder
20
+ do_execute
21
+ do_invoke Dproj, [self.name], idever: self.options[:idever], template: 'src'
22
+ end
23
+
24
+ invoke_from_option :samples do |klass|
25
+ do_invoke klass, ['Sample1'], idever: self.options[:idever]
26
+ end
27
+ invoke_from_option :tests do |klass|
28
+ do_invoke klass, ['Test1'], idever: self.options[:idever]
29
+ end
30
+
31
+ private
32
+ def self.prepare_for_invocation(key, name)
33
+ case name
34
+ when Symbol, String
35
+ Gen.const_get(name.to_s.camelize)
36
+ else
37
+ name
38
+ end
39
+ end
40
+ end
41
+
42
+ class Samples < Thor::Group
43
+ include Generator
44
+
45
+ argument :name, type: :string, required: false, desc: "name for sample project to be executed"
46
+ class_option :idever, type: :string, desc: "IDE version"
47
+
48
+ desc "Generate samples structure in current dir"
49
+
50
+ def execute
51
+ do_execute
52
+ do_invoke Dproj, [self.name], idever: self.options[:idever], template: 'sample'
53
+ end
54
+ end
55
+
56
+ class Tests < Thor::Group
57
+ include Generator
58
+
59
+ argument :name
60
+ desc "Generate tests structure in current dir"
61
+
62
+ def execute
63
+ do_execute
64
+ do_invoke Dproj, [self.name], idever: self.options[:idever], template: 'test'
65
+ end
66
+ end
67
+
68
+ class Dproj < Thor::Group
69
+ include Generator
70
+
71
+ argument :name, type: :string, required: false, desc: "name for project to be executed"
72
+
73
+ desc "Generate delphi project"
74
+
75
+ class_option :template, aliases: '-t', type: :string, desc: "project template name"
76
+ class_option :idever, type: :string, desc: "IDE version"
77
+ def execute
78
+ self.class.subtemplate = self.options[:template]
79
+ do_execute
80
+ # forgett ithis invocation in order to several invocations
81
+ _shared_configuration[:invocations].delete self.class
82
+ end
83
+ end
84
+ end
data/lib/dvm/ide.thor CHANGED
@@ -19,7 +19,7 @@ class Ide < Thor
19
19
 
20
20
  desc "start IDE-TAG ", "start IDE with IDE-TAG"
21
21
  def start(idever=nil)
22
- idever ||= IDEServices.idelist.first
22
+ idever ||= IDEServices.default_ide
23
23
  ide = IDEServices.new(idever, ROOT)
24
24
  ide.start
25
25
  end
@@ -31,7 +31,8 @@ private
31
31
  say "NO IDE(s) found\n"
32
32
  else
33
33
  say "found IDEs:\n"
34
- say ides.join("\n")
34
+ infos = IDEServices::IDEInfos
35
+ say ides.map{|ide| ide + ": #{infos[ide][:name]}, #{infos[ide][:desc]}"}.join("\n")
35
36
  end
36
37
  end
37
38
 
data/lib/dvm/project.thor CHANGED
@@ -1,7 +1,7 @@
1
1
  
2
2
  class Project < BuildTarget
3
3
 
4
- SHIP_FILE = "#{TARGET}-#{TARGET.VERSION.tag}"
4
+ SHIP_FILE = "#{::Delphivm::APPMODULE}-#{::Delphivm::APPMODULE.VERSION.tag}"
5
5
 
6
6
  desc "clean", "clean #{SHIP_FILE} products", :for => :clean
7
7
  desc "make", "make #{SHIP_FILE} products", :for => :make
data/lib/extensions.rb CHANGED
@@ -1,6 +1,6 @@
1
- # encoding: UTF-8
2
1
  class ::Pathname
3
2
  def glob(*args, &block)
3
+ args = [''] if args.empty?
4
4
  args[0] = (self + args[0]).to_s
5
5
  Pathname.glob(*args, &block)
6
6
  end
@@ -0,0 +1,18 @@
1
+ out
2
+ profiling
3
+ LibrarySupport
4
+ ModelSupport_*
5
+ __history
6
+ *.local
7
+ *.identcache
8
+ *.tvsconfig
9
+ *.dsk
10
+ *.bak
11
+ *.~*
12
+ temp
13
+ /ship
14
+ /vendor/cache
15
+ /vendor/imports
16
+ Thumbs.db
17
+
18
+ .DS_Store
@@ -0,0 +1,9 @@
1
+ @echo off
2
+ setlocal
3
+ set BDSPROJECTGROUPDIR=%~dp0
4
+ set IDEVERSION=D170
5
+
6
+ %~d0
7
+ cd %~dp0
8
+
9
+ START BDS.EXE -rDelphiVM\<%=name%>
@@ -0,0 +1,19 @@
1
+ @echo off
2
+ setlocal
3
+ set BDSPROJECTGROUPDIR=%~dp0
4
+ %~d0
5
+ cd %~dp0
6
+
7
+ call rsvars
8
+
9
+ echo ================== BUILD APP ===============================
10
+ for /R %%F in (*.groupproj) do (
11
+ msbuild /nologo /v:quiet /filelogger /flp:v=detailed /p:BuildGroup=All %%F
12
+ )
13
+
14
+ echo =================== GEN DOC ================================
15
+ for /R %%F in (*.dproj) do (
16
+ gendoccli -odoc %%F
17
+ )
18
+
19
+ cd %BDSPROJECTGROUPDIR%
@@ -0,0 +1,16 @@
1
+
2
+ ## Overview
3
+
4
+ <%=name%> is a fantastic tool
5
+
6
+ ## Features
7
+
8
+ * Can do that
9
+ * And also that
10
+
11
+ ## License
12
+
13
+ <%=name%> by YourCompany <info@example.org>
14
+
15
+ Copyright(c) 2013 YourCompany.
16
+
@@ -0,0 +1 @@
1
+ 0.0.0
@@ -0,0 +1,61 @@
1
+ PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved.
2
+ --------------------------------------------------------------------------
3
+ Reuse governed by Creative Commons Attribution 3.0 United States License
4
+ View this license and the associated Creative Commons deed online at:
5
+ http://creativecommons.org/licenses/by/3.0/us/
6
+ You must leave all copyright and license
7
+ statements intact in your final product.
8
+ --------------------------------------------------------------------------
9
+ License
10
+
11
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
12
+
13
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
14
+
15
+ 1. Definitions
16
+
17
+ 1. "Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with one or more other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.
18
+ 2. "Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License.
19
+ 3. "Licensor" means the individual, individuals, entity or entities that offers the Work under the terms of this License.
20
+ 4. "Original Author" means the individual, individuals, entity or entities who created the Work.
21
+ 5. "Work" means the copyrightable work of authorship offered under the terms of this License.
22
+ 6. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
23
+
24
+ 2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.
25
+
26
+ 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
27
+
28
+ 1. to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;
29
+ 2. to create and reproduce Derivative Works provided that any such Derivative Work, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";;
30
+ 3. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;
31
+ 4. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works.
32
+ 5. For the avoidance of doubt, where the Work is a musical composition:
33
+ 1. Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or, in the event that Licensor is a member of a performance rights society (e.g. ASCAP, BMI, SESAC), via that society, royalties for the public performance or public digital performance (e.g. webcast) of the Work.
34
+ 2. Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights agency or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions).
35
+ 6. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions).
36
+
37
+ The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved.
38
+
39
+ 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
40
+
41
+ 1. You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of a recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. When You distribute, publicly display, publicly perform, or publicly digitally perform the Work, You may not impose any technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by Section 4(b), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by Section 4(b), as requested.
42
+ 2. If You distribute, publicly display, publicly perform, or publicly digitally perform the Work (as defined in Section 1 above) or any Derivative Works (as defined in Section 1 above) or Collective Works (as defined in Section 1 above), You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and, consistent with Section 3(b) in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(b) may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear, if a credit for all contributing authors of the Derivative Work or Collective Work appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
43
+
44
+ 5. Representations, Warranties and Disclaimer
45
+
46
+ UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND ONLY TO THE EXTENT OF ANY RIGHTS HELD IN THE LICENSED WORK BY THE LICENSOR. THE LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MARKETABILITY, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
47
+
48
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
49
+
50
+ 7. Termination
51
+
52
+ 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works (as defined in Section 1 above) or Collective Works (as defined in Section 1 above) from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
53
+ 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
54
+
55
+ 8. Miscellaneous
56
+
57
+ 1. Each time You distribute or publicly digitally perform the Work (as defined in Section 1 above) or a Collective Work (as defined in Section 1 above), the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
58
+ 2. Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
59
+ 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
60
+ 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
61
+ 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
@@ -0,0 +1,45 @@
1
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+ <PropertyGroup>
3
+ <ProjectGuid>{<%=SecureRandom.uuid.upcase%>}</ProjectGuid>
4
+ </PropertyGroup>
5
+ <ItemGroup>
6
+ <Projects Include="<%=app_name%>.dproj">
7
+ <Dependencies/>
8
+ </Projects>
9
+ </ItemGroup>
10
+ <ProjectExtensions>
11
+ <Borland.Personality>Default.Personality.12</Borland.Personality>
12
+ <Borland.ProjectType/>
13
+ <BorlandProject>
14
+ <Default.Personality/>
15
+ </BorlandProject>
16
+ </ProjectExtensions>
17
+ <Target Name="<%=app_name%>">
18
+ <MSBuild Projects="<%=app_name%>.dproj"/>
19
+ </Target>
20
+ <Target Name="<%=app_name%>:Clean">
21
+ <MSBuild Projects="<%=app_name%>.dproj" Targets="Clean"/>
22
+ </Target>
23
+ <Target Name="<%=app_name%>:Make">
24
+ <MSBuild Projects="<%=app_name%>.dproj" Targets="Make"/>
25
+ </Target>
26
+ <Target Name="Build">
27
+ <CallTarget Targets="<%=app_name%>"/>
28
+ </Target>
29
+ <Target Name="Clean">
30
+ <CallTarget Targets="<%=app_name%>:Clean"/>
31
+ </Target>
32
+ <Target Name="Make">
33
+ <CallTarget Targets="<%=app_name%>:Make"/>
34
+ </Target>
35
+ <Import Project="$(BDS)\Bin\CodeGear.Group.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Group.Targets')"/>
36
+ <ItemGroup Condition="'$(BuildGroup)'=='All'">
37
+ <BuildGroupProject Include="<%=app_name%>.dproj">
38
+ <ProjectGuid>{<%=($src_prj_guid ||= SecureRandom.uuid.upcase) %>}</ProjectGuid>
39
+ <Configurations>Debug;Release</Configurations>
40
+ <Platforms>Win32</Platforms>
41
+ <Enabled>True</Enabled>
42
+ </BuildGroupProject>
43
+ </ItemGroup>
44
+ </Project>
45
+
@@ -0,0 +1,18 @@
1
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+ <PropertyGroup>
3
+ <DCC_ExeOutput>$(BDSPROJECTGROUPDIR)\out\$(IDEVersion)\$(Platform)\$(Config)\bin</DCC_ExeOutput>
4
+ <DCC_BplOutput>$(BDSPROJECTGROUPDIR)\out\$(IDEVersion)\$(Platform)\$(Config)\bin</DCC_BplOutput>
5
+ <DCC_UnitSearchPath>$(BDSPROJECTGROUPDIR)\out\$(IDEVersion)\$(Platform)\$(Config)\lib;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
6
+ <DCC_UnitAlias>WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;$(DCC_UnitAlias)</DCC_UnitAlias>
7
+ <DCC_DcpOutput>$(BDSPROJECTGROUPDIR)\out\$(IDEVersion)\$(Platform)\$(Config)\lib</DCC_DcpOutput>
8
+ <DCC_DcuOutput>$(BDSPROJECTGROUPDIR)\out\$(IDEVersion)\$(Platform)\$(Config)\lib</DCC_DcuOutput>
9
+ </PropertyGroup>
10
+ <ProjectExtensions>
11
+ <Borland.Personality>Delphi.Personality.12</Borland.Personality>
12
+ <Borland.ProjectType>OptionSet</Borland.ProjectType>
13
+ <BorlandProject>
14
+ <Delphi.Personality/>
15
+ </BorlandProject>
16
+ <ProjectFileVersion>12</ProjectFileVersion>
17
+ </ProjectExtensions>
18
+ </Project>
@@ -0,0 +1,12 @@
1
+ program <%=name%>;
2
+
3
+ uses
4
+ Vcl.Forms;
5
+
6
+ {$R *.res}
7
+
8
+ begin
9
+ Application.Initialize;
10
+ Application.MainFormOnTaskbar := True;
11
+ Application.Run;
12
+ end.
@@ -0,0 +1,146 @@
1
+ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2
+ <PropertyGroup>
3
+ <ProjectGuid>{<%=($sample_prj_guid ||= SecureRandom.uuid.upcase) %>}</ProjectGuid>
4
+ <ProjectVersion>14.4</ProjectVersion>
5
+ <FrameworkType>VCL</FrameworkType>
6
+ <MainSource><%=name%>.dpr</MainSource>
7
+ <Base>True</Base>
8
+ <Config Condition="'$(Config)'==''">Samples</Config>
9
+ <Platform Condition="'$(Platform)'==''">Win32</Platform>
10
+ <TargetedPlatforms>1</TargetedPlatforms>
11
+ <AppType>Application</AppType>
12
+ </PropertyGroup>
13
+ <PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
14
+ <Base>true</Base>
15
+ </PropertyGroup>
16
+ <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Base)'=='true') or '$(Base_Win32)'!=''">
17
+ <Base_Win32>true</Base_Win32>
18
+ <CfgParent>Base</CfgParent>
19
+ <Base>true</Base>
20
+ </PropertyGroup>
21
+ <PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Base)'=='true') or '$(Base_Win64)'!=''">
22
+ <Base_Win64>true</Base_Win64>
23
+ <CfgParent>Base</CfgParent>
24
+ <Base>true</Base>
25
+ </PropertyGroup>
26
+ <PropertyGroup Condition="'$(Config)'=='Samples' or '$(Cfg_1)'!=''">
27
+ <Cfg_1>true</Cfg_1>
28
+ <CfgParent>Base</CfgParent>
29
+ <Base>true</Base>
30
+ </PropertyGroup>
31
+ <PropertyGroup Condition="('$(Platform)'=='Win32' and '$(Cfg_1)'=='true') or '$(Cfg_1_Win32)'!=''">
32
+ <Cfg_1_Win32>true</Cfg_1_Win32>
33
+ <CfgParent>Cfg_1</CfgParent>
34
+ <Cfg_1>true</Cfg_1>
35
+ <Base>true</Base>
36
+ </PropertyGroup>
37
+ <Import Project="..\samples.optset" Condition="'$(Base)'!='' And Exists('..\samples.optset')"/>
38
+ <PropertyGroup Condition="'$(Base)'!=''">
39
+ <Manifest_File>None</Manifest_File>
40
+ <VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
41
+ <VerInfo_Locale>3082</VerInfo_Locale>
42
+ <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
43
+ <Icon_MainIcon>$(BDS)\bin\delphi_PROJECTICON.ico</Icon_MainIcon>
44
+ <DCC_E>false</DCC_E>
45
+ <DCC_N>false</DCC_N>
46
+ <DCC_S>false</DCC_S>
47
+ <DCC_F>false</DCC_F>
48
+ <DCC_K>false</DCC_K>
49
+ <CfgDependentOn>..\samples.optset</CfgDependentOn>
50
+ </PropertyGroup>
51
+ <PropertyGroup Condition="'$(Base_Win32)'!=''">
52
+ <DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
53
+ <VerInfo_Locale>1033</VerInfo_Locale>
54
+ <DCC_UsePackage>bindcompfmx;DBXSqliteDriver;vcldbx;fmx;rtl;dbrtl;DbxClientDriver;IndySystem;TeeDB;bindcomp;inetdb;vclib;inetdbbde;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DBXOdbcDriver;DataSnapServer;Tee;DataSnapProviderClient;xmlrtl;svnui;ibxpress;DbxCommonDriver;DBXSybaseASEDriver;vclimg;IndyProtocols;dbxcds;DBXMySQLDriver;DatasnapConnectorsFreePascal;MetropolisUILiveTile;vclactnband;bindengine;vcldb;soaprtl;bindcompdbx;vcldsnap;bindcompvcl;FMXTee;TeeUI;vclie;vcltouch;DBXDb2Driver;websnap;DBXOracleDriver;CustomIPTransport;vclribbon;VclSmp;dsnap;IndyIPServer;DBXInformixDriver;Intraweb;fmxase;vcl;IndyCore;DataSnapConnectors;CodeSiteExpressPkg;IndyIPCommon;CloudService;dsnapcon;DBXFirebirdDriver;DBXMSSQLDriver;inet;FmxTeeUI;fmxobj;vclx;inetdbxpress;webdsnap;svn;DBXSybaseASADriver;fmxdae;bdertl;dbexpress;adortl;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
55
+ <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
56
+ <Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
57
+ </PropertyGroup>
58
+ <PropertyGroup Condition="'$(Base_Win64)'!=''">
59
+ <DCC_UsePackage>bindcompfmx;DBXSqliteDriver;fmx;rtl;dbrtl;DbxClientDriver;IndySystem;bindcomp;inetdb;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DBXOdbcDriver;DataSnapServer;DataSnapProviderClient;xmlrtl;DbxCommonDriver;DBXSybaseASEDriver;vclimg;IndyProtocols;dbxcds;DBXMySQLDriver;vclactnband;bindengine;vcldb;soaprtl;bindcompdbx;vcldsnap;bindcompvcl;vclie;vcltouch;DBXDb2Driver;websnap;DBXOracleDriver;CustomIPTransport;VclSmp;dsnap;IndyIPServer;DBXInformixDriver;fmxase;vcl;IndyCore;IndyIPCommon;dsnapcon;DBXFirebirdDriver;DBXMSSQLDriver;inet;fmxobj;vclx;inetdbxpress;webdsnap;DBXSybaseASADriver;fmxdae;dbexpress;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
60
+ </PropertyGroup>
61
+ <PropertyGroup Condition="'$(Cfg_1)'!=''">
62
+ <DCC_DebugDCUs>true</DCC_DebugDCUs>
63
+ <DCC_Optimize>false</DCC_Optimize>
64
+ <DCC_GenerateStackFrames>true</DCC_GenerateStackFrames>
65
+ <DCC_DebugInfoInExe>true</DCC_DebugInfoInExe>
66
+ <DCC_RemoteDebug>true</DCC_RemoteDebug>
67
+ </PropertyGroup>
68
+ <PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
69
+ <VerInfo_Locale>1033</VerInfo_Locale>
70
+ <Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
71
+ <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
72
+ <DCC_RemoteDebug>false</DCC_RemoteDebug>
73
+ </PropertyGroup>
74
+ <ItemGroup>
75
+ <DelphiCompile Include="$(MainSource)">
76
+ <MainSource>MainSource</MainSource>
77
+ </DelphiCompile>
78
+ <BuildConfiguration Include="Base">
79
+ <Key>Base</Key>
80
+ <DependentOn>..\samples.optset</DependentOn>
81
+ </BuildConfiguration>
82
+ <BuildConfiguration Include="Samples">
83
+ <Key>Cfg_1</Key>
84
+ <CfgParent>Base</CfgParent>
85
+ </BuildConfiguration>
86
+ </ItemGroup>
87
+ <ProjectExtensions>
88
+ <Borland.Personality>Delphi.Personality.12</Borland.Personality>
89
+ <Borland.ProjectType/>
90
+ <BorlandProject>
91
+ <Delphi.Personality>
92
+ <VersionInfo>
93
+ <VersionInfo Name="IncludeVerInfo">False</VersionInfo>
94
+ <VersionInfo Name="AutoIncBuild">False</VersionInfo>
95
+ <VersionInfo Name="MajorVer">1</VersionInfo>
96
+ <VersionInfo Name="MinorVer">0</VersionInfo>
97
+ <VersionInfo Name="Release">0</VersionInfo>
98
+ <VersionInfo Name="Build">0</VersionInfo>
99
+ <VersionInfo Name="Debug">False</VersionInfo>
100
+ <VersionInfo Name="PreRelease">False</VersionInfo>
101
+ <VersionInfo Name="Special">False</VersionInfo>
102
+ <VersionInfo Name="Private">False</VersionInfo>
103
+ <VersionInfo Name="DLL">False</VersionInfo>
104
+ <VersionInfo Name="Locale">3082</VersionInfo>
105
+ <VersionInfo Name="CodePage">1252</VersionInfo>
106
+ </VersionInfo>
107
+ <VersionInfoKeys>
108
+ <VersionInfoKeys Name="CompanyName"/>
109
+ <VersionInfoKeys Name="FileDescription"/>
110
+ <VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys>
111
+ <VersionInfoKeys Name="InternalName"/>
112
+ <VersionInfoKeys Name="LegalCopyright"/>
113
+ <VersionInfoKeys Name="LegalTrademarks"/>
114
+ <VersionInfoKeys Name="OriginalFilename"/>
115
+ <VersionInfoKeys Name="ProductName"/>
116
+ <VersionInfoKeys Name="ProductVersion">1.0.0.0</VersionInfoKeys>
117
+ <VersionInfoKeys Name="Comments"/>
118
+ <VersionInfoKeys Name="CFBundleName"/>
119
+ <VersionInfoKeys Name="CFBundleDisplayName"/>
120
+ <VersionInfoKeys Name="CFBundleIdentifier"/>
121
+ <VersionInfoKeys Name="CFBundleVersion"/>
122
+ <VersionInfoKeys Name="CFBundlePackageType"/>
123
+ <VersionInfoKeys Name="CFBundleSignature"/>
124
+ <VersionInfoKeys Name="CFBundleAllowMixedLocalizations"/>
125
+ <VersionInfoKeys Name="CFBundleExecutable"/>
126
+ </VersionInfoKeys>
127
+ <Source>
128
+ <Source Name="MainSource"><%=name%>.dpr</Source>
129
+ </Source>
130
+ <Excluded_Packages>
131
+ <Excluded_Packages Name="$(BDSBIN)\dcloffice2k170.bpl">Microsoft Office 2000 Sample Automation Server Wrapper Components</Excluded_Packages>
132
+ <Excluded_Packages Name="$(BDSBIN)\dclofficexp170.bpl">Microsoft Office XP Sample Automation Server Wrapper Components</Excluded_Packages>
133
+ </Excluded_Packages>
134
+ </Delphi.Personality>
135
+ <Deployment/>
136
+ <Platforms>
137
+ <Platform value="Win32">True</Platform>
138
+ <Platform value="Win64">False</Platform>
139
+ </Platforms>
140
+ <ModelSupport>False</ModelSupport>
141
+ </BorlandProject>
142
+ <ProjectFileVersion>12</ProjectFileVersion>
143
+ </ProjectExtensions>
144
+ <Import Project="$(BDS)\Bin\CodeGear.Delphi.Targets" Condition="Exists('$(BDS)\Bin\CodeGear.Delphi.Targets')"/>
145
+ <Import Project="$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj" Condition="Exists('$(APPDATA)\Embarcadero\$(BDSAPPDATABASEDIR)\$(PRODUCTVERSION)\UserTools.proj')"/>
146
+ </Project>