res/generators/rhogen.rb in rhodes-5.5.18 vs res/generators/rhogen.rb in rhodes-6.0.11

- old
+ new

@@ -112,19 +112,19 @@ template :gitignore do |template| template.source = 'gitignore' template.destination = "#{name}/.gitignore" end - template :rubyversion do |template| - template.source = 'ruby-version' - template.destination = "#{name}/.ruby-version" - end + #template :rubyversion do |template| + # template.source = 'ruby-version' + # template.destination = "#{name}/.ruby-version" + #end - template :gemfile do |template| - template.source = 'Gemfile' - template.destination = "#{name}/Gemfile" - end + #template :gemfile do |template| + # template.source = 'Gemfile' + # template.destination = "#{name}/Gemfile" + #end template :application do |template| template.source = 'app/application.rb' template.destination = "#{name}/app/application.rb" end @@ -269,19 +269,19 @@ template :gitignore do |template| template.source = 'gitignore' template.destination = "#{name}/.gitignore" end - template :rubyversion do |template| - template.source = 'ruby-version' - template.destination = "#{name}/.ruby-version" - end + #template :rubyversion do |template| + # template.source = 'ruby-version' + # template.destination = "#{name}/.ruby-version" + #end - template :gemfile do |template| - template.source = 'Gemfile' - template.destination = "#{name}/Gemfile" - end + #template :gemfile do |template| + # template.source = 'Gemfile' + # template.destination = "#{name}/Gemfile" + #end template :application do |template| template.source = 'app/javascript_index.html' template.destination = "#{name}/app/index.html" end @@ -739,10 +739,13 @@ template.source = 'Bremen.xcodeproj/project.pbxproj' xcode_version = get_xcode_version if xcode_version[0].to_i >= 7 template.source = 'Bremen7.xcodeproj/project.pbxproj' end + if xcode_version[0].to_i >= 8 + template.source = 'Bremen8.xcodeproj/project.pbxproj' + end template.destination = "project/iphone/#{namecamelcase}.xcodeproj/project.pbxproj" if File.exists?(template.destination) #puts '$$$$$$$$$$$$$$$$ EXIST'+template.destination template.destination = 'project/iphone/toremovef' else @@ -944,12 +947,12 @@ template.source = 'extensions/montana/ext.yml' template.destination = "extensions/#{name}/ext.yml" puuid = UUID.new generated_uuid = puuid.generate @productid = generated_uuid - @wp8LibGUID = puuid.generate - @wp8StubImplGUID = puuid.generate + @uwpLibGUID = puuid.generate + @uwpStubImplGUID = puuid.generate @@noapp = noapp end # template :extension_ruby do |template| # template.source = 'extensions/montana/montana.rb' @@ -1097,70 +1100,70 @@ template :extension_wm_impl_cpp do |template| template.source = 'extensions/montana/ext/platform/wm/src/montana_impl.cpp' template.destination = "extensions/#{name}/ext/platform/wm/src/#{namecamelcase}_impl.cpp" end - template :extension_wp8_vcproject do |template| - template.source = 'extensions/montana/ext/platform/wp8/Montana.vcxproj' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}.vcxproj" + template :extension_uwp_vcproject do |template| + template.source = 'extensions/montana/ext/platform/uwp/Montana.vcxproj' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}.vcxproj" end - template :extension_wp8_vcprojectprops do |template| - template.source = 'extensions/montana/ext/platform/wp8/montana.props' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}.props" + template :extension_uwp_vcprojectprops do |template| + template.source = 'extensions/montana/ext/platform/uwp/montana.props' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}.props" end - template :extension_wp8_vcprojectfilters do |template| - template.source = 'extensions/montana/ext/platform/wp8/montana.vcxproj.filters' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}.vcxproj.filters" + template :extension_uwp_vcprojectfilters do |template| + template.source = 'extensions/montana/ext/platform/uwp/montana.vcxproj.filters' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}.vcxproj.filters" end - template :extension_wp8_impl_cpp do |template| - template.source = 'extensions/montana/ext/platform/wp8/src/montana_impl.cpp' - template.destination = "extensions/#{name}/ext/platform/wp8/src/#{namecamelcase}_impl.cpp" + template :extension_uwp_impl_cpp do |template| + template.source = 'extensions/montana/ext/platform/uwp/src/montana_impl.cpp' + template.destination = "extensions/#{name}/ext/platform/uwp/src/#{namecamelcase}_impl.cpp" end - # wp8: c++ -> c# bridging + # uwp: c++ -> c# bridging - template :extension_wp8_impl_targets do |template| - template.source = 'extensions/montana/ext/platform/wp8/MontanaImpl.targets' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}Impl.targets" + template :extension_uwp_impl_targets do |template| + template.source = 'extensions/montana/ext/platform/uwp/MontanaImpl.targets' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}Impl.targets" end - template :extension_wp8_impl_csproj do |template| - template.source = 'extensions/montana/ext/platform/wp8/MontanaImpl.csproj' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}Impl.csproj" + template :extension_uwp_impl_csproj do |template| + template.source = 'extensions/montana/ext/platform/uwp/MontanaImpl.csproj' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}Impl.csproj" end - template :extension_wp8_impl_props do |template| - template.source = 'extensions/montana/ext/platform/wp8/MontanaImpl.props' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}Impl.props" + template :extension_uwp_impl_props do |template| + template.source = 'extensions/montana/ext/platform/uwp/MontanaImpl.props' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}Impl.props" end - template :extension_wp8_impl_cs do |template| - template.source = 'extensions/montana/ext/platform/wp8/src/Montana_impl.cs' - template.destination = "extensions/#{name}/ext/platform/wp8/src/#{namecamelcase}_impl.cs" + template :extension_uwp_impl_cs do |template| + template.source = 'extensions/montana/ext/platform/uwp/src/Montana_impl.cs' + template.destination = "extensions/#{name}/ext/platform/uwp/src/#{namecamelcase}_impl.cs" end - template :extension_wp8_impl_assemblyinfo do |template| - template.source = 'extensions/montana/ext/platform/wp8/src/Properties/AssemblyInfo.cs' - template.destination = "extensions/#{name}/ext/platform/wp8/src/Properties/AssemblyInfo.cs" + template :extension_uwp_impl_assemblyinfo do |template| + template.source = 'extensions/montana/ext/platform/uwp/src/Properties/AssemblyInfo.cs' + template.destination = "extensions/#{name}/ext/platform/uwp/src/Properties/AssemblyInfo.cs" end - template :extension_wp8_lib_vcxproj do |template| - template.source = 'extensions/montana/ext/platform/wp8/MontanaLib.vcxproj' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}Lib.vcxproj" + template :extension_uwp_lib_vcxproj do |template| + template.source = 'extensions/montana/ext/platform/uwp/MontanaLib.vcxproj' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}Lib.vcxproj" end - template :extension_wp8_lib_vcxproj_filters do |template| - template.source = 'extensions/montana/ext/platform/wp8/MontanaLib.vcxproj.filters' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}Lib.vcxproj.filters" + template :extension_uwp_lib_vcxproj_filters do |template| + template.source = 'extensions/montana/ext/platform/uwp/MontanaLib.vcxproj.filters' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}Lib.vcxproj.filters" end - template :extension_wp8_lib_props do |template| - template.source = 'extensions/montana/ext/platform/wp8/MontanaLib.props' - template.destination = "extensions/#{name}/ext/platform/wp8/#{namecamelcase}Lib.props" + template :extension_uwp_lib_props do |template| + template.source = 'extensions/montana/ext/platform/uwp/MontanaLib.props' + template.destination = "extensions/#{name}/ext/platform/uwp/#{namecamelcase}Lib.props" end template :extension_qt_rakefile do |template| template.source = 'extensions/montana/ext/platform/qt/Rakefile' @@ -1486,44 +1489,43 @@ template :android_cpp_js_wrapper do |template| template.source = 'platform/android/gen/jni/montana_js_wrap.cpp' template.destination = "platform/android/generated/jni/#{$cur_module.name.downcase}_js_wrap.cpp" end - - # wp8 - template :wp8_stub_impl_montana_impl do |template| - template.source = 'platform/wp8/stub_impl/Montana_impl.cs' - template.destination = "platform/wp8/generated/stub_impl/#{$cur_module.name}_impl.cs" + # uwp + template :uwp_stub_impl_montana_impl do |template| + template.source = 'platform/uwp/stub_impl/Montana_impl.cs' + template.destination = "platform/uwp/generated/stub_impl/#{$cur_module.name}_impl.cs" end - template :wp8_montana_base_cs do |template| - template.source = 'platform/wp8/MontanaBase.cs' - template.destination = "platform/wp8/generated/#{$cur_module.name}Base.cs" + template :uwp_montana_base_cs do |template| + template.source = 'platform/uwp/MontanaBase.cs' + template.destination = "platform/uwp/generated/#{$cur_module.name}Base.cs" end - template :wp8_runtime_montana_runtime_h do |template| - template.source = 'platform/wp8/lib/MontanaRuntime.h' - template.destination = "platform/wp8/generated/lib/#{$cur_module.name}Runtime.h" + template :uwp_runtime_montana_runtime_h do |template| + template.source = 'platform/uwp/lib/MontanaRuntime.h' + template.destination = "platform/uwp/generated/lib/#{$cur_module.name}Runtime.h" end - template :wp8_runtime_montana_runtime_cpp do |template| - template.source = 'platform/wp8/lib/MontanaRuntime.cpp' - template.destination = "platform/wp8/generated/lib/#{$cur_module.name}Runtime.cpp" + template :uwp_runtime_montana_runtime_cpp do |template| + template.source = 'platform/uwp/lib/MontanaRuntime.cpp' + template.destination = "platform/uwp/generated/lib/#{$cur_module.name}Runtime.cpp" end - template :wp8_lib_montana_factory_h do |template| - template.source = 'platform/wp8/lib/MontanaFactory.h' - template.destination = "platform/wp8/generated/lib/#{$cur_module.name}Factory.h" + template :uwp_lib_montana_factory_h do |template| + template.source = 'platform/uwp/lib/MontanaFactory.h' + template.destination = "platform/uwp/generated/lib/#{$cur_module.name}Factory.h" end - template :wp8_lib_montana_impl do |template| - template.source = 'platform/wp8/lib/Montana_impl.cpp' - template.destination = "platform/wp8/generated/lib/#{$cur_module.name}_impl.cpp" + template :uwp_lib_montana_impl do |template| + template.source = 'platform/uwp/lib/Montana_impl.cpp' + template.destination = "platform/uwp/generated/lib/#{$cur_module.name}_impl.cpp" end - template :wp8_lib_montana_impl_h do |template| - template.source = 'platform/wp8/lib/Montana_impl.h' - template.destination = "platform/wp8/generated/lib/#{$cur_module.name}_impl.h" + template :uwp_lib_montana_impl_h do |template| + template.source = 'platform/uwp/lib/Montana_impl.h' + template.destination = "platform/uwp/generated/lib/#{$cur_module.name}_impl.h" end template :public_api_module do |template| template.source = 'js/Rho.Montana.js'