Skip to content

windyuuy/opera

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This README explains how to build a custom native library for Opera Desktop.

Due to platform limitations, we have different build instructions for different
desktop platforms.

Mac build instructions
----------------------

First extract the archive, put downloaded Opera (<Next/Developer>).app in
chromium/src/out/Release subdirectory of the extracted folder, rename
"Opera <Next/Developer>.app" to "Opera.app" so that the final product can find
it. Then download libopera.a built for Mac for the same version (extract it from
a zip archive if that's what you downloaded), and put it in the same directory
as Opera.app.

After that following commands can be used to build the open source part of Opera
browser. Since a large amount of this is based on Chromium open source project,
you can refer to their website (http://www.chromium.org/) for further
information about how to tweak certain build parameters.

  git clone https://git.chromium.org/chromium/tools/depot_tools.git
  export PATH="$PATH":`pwd`/depot_tools
  export GYP_GENERATORS=ninja
  cd opera-<version>/chromium/src
  tools/clang/scripts/update.sh
  build/gyp_chromium -I ../../desktop/opera_global.gypi \
      --depth=. ../../desktop/opera_source_release.gyp
  ninja -C out/Release opera_framework

Windows build instructions
--------------------------

To be able to run the final product of Windows build, you need to obtain a
dynamically linked Opera build (shared library version) provided along with this
source code package. From provided sources you may build dlls for the open
source parts, and replace the ones from Opera with them.

  cd chromium\src\build
  python gyp_chromium -Dcomponent=shared_library

Open all.sln in Visual Studio 2010. From this solution you are able to modify
and build dll libraries in "Release" configuration and then replace them with
the ones in Opera shared library installation.

About

Opera's Source Code. A mirror.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 79.3%
  • JavaScript 5.6%
  • Python 4.8%
  • HTML 4.0%
  • Objective-C++ 2.4%
  • C 1.6%
  • Other 2.3%