Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions Gemfile.lock

This file was deleted.

7 changes: 0 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ require "bundler/gem_tasks"
require "rake/testtask"
require 'ffi-compiler/compile_task'

task :compile do
FFI::Compiler::CompileTask.new('webview-ext') do |c|
c.cxxflags << "-std=c++11"
c.ldflags << "-framework WebKit"
end
end


Rake::TestTask.new(:test) do |t|
t.libs << "test"
Expand Down
3 changes: 3 additions & 0 deletions ext/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ FFI::Compiler::CompileTask.new('webview-ext') do |c|
elsif RbConfig::CONFIG['host_os'] =~ /linux/
c.cxxflags << `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`.strip
c.ldflags << `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`.strip
elsif RbConfig::CONFIG['host_os'] =~ /(mswin|mingw)/
c.cxxflags << "-std=c++17 -mwindows -Ilibs/webview -Ilibs/webview2/build/native/include"
c.ldflags << "-ladvapi32 -lole32 -lshell32 -lshlwapi -luser32 -lversion"
else
puts "Unsupported operating system prolly windows, check rake file in ext directory in source code and add correct flags from here https://github.com/webview/webview#webview-for-cc-developers "
end
Expand Down
Loading