868859ac83
* Ignore also old (html) ui built folder * Ignore sqlite3 ext library ide settings * Initialize sqlite3 project for .so and .bundle files * Enable _MSC_VER check on 2.7 * Initialize ruby cpp transition file * Communicate first time with sqlite3 c base code in Sketchup * Update compiler project with sqlite3 cpp files * Add sqlite3 ruby source files to ext libraries * Update gitignore with Release and Debug folders of sqlite3 compiler * Exclude rubocops for ext libraries * Exclude rubocops for _sqlite3 compiler * Fix rubocop issues
33 lines
883 B
Ruby
33 lines
883 B
Ruby
# This file should be required by a file that has defined `RELEASE` to be the
|
|
# name of the build folder where the binaries are located.
|
|
|
|
configuration, platform = ARGV[0].split(':')
|
|
|
|
if SKETCHUP_CONSOLE.respond_to?(:show)
|
|
SKETCHUP_CONSOLE.show
|
|
else
|
|
Sketchup.send_action("showRubyPanel:")
|
|
end
|
|
|
|
pro_status = Sketchup.is_pro? ? "Pro" : ""
|
|
puts "SketchUp #{pro_status} #{Sketchup.version}"
|
|
puts "Loading '#{configuration}' (#{platform}) build..."
|
|
|
|
ruby_path = File.dirname(__FILE__)
|
|
project_path = File.expand_path( File.join(ruby_path, '..') )
|
|
if platform == 'x64'
|
|
binary_path = File.join(project_path, configuration, platform)
|
|
else
|
|
binary_path = File.join(project_path, configuration)
|
|
end
|
|
|
|
puts ruby_path
|
|
puts project_path
|
|
puts binary_path
|
|
|
|
pattern = File.join(binary_path, "*.{so,bundle}")
|
|
Dir.glob(pattern).each { |library|
|
|
puts "Requiring #{library}"
|
|
require library
|
|
}
|