Files
speckle-sketchup/_sqlite3/Ruby/setup_environment.rb
T
oguzhankoral 868859ac83 Feat(tools): add compiler project for sqlite3 and sqlite3 ruby files
* 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
2022-11-16 14:18:28 +03:00

23 lines
661 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.
if SKETCHUP_CONSOLE.respond_to?(:show)
SKETCHUP_CONSOLE.show
else
Sketchup.send_action("showRubyPanel:")
end
prostatus = Sketchup.is_pro? ? "Pro" : ""
puts "SketchUp #{prostatus} #{Sketchup.version}"
puts "Loading '#{RELEASE}' build..."
ruby_path = File.dirname(__FILE__)
project_path = File.expand_path( File.join(ruby_path, '..') )
binary_path = File.join(project_path, RELEASE)
pattern = File.join(binary_path, "*.{so,bundle}")
Dir.glob(pattern).each { |library|
puts "Requiring #{library}"
require library
}