Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Quick Start Guide

MrBar42 edited this page May 24, 2018 · 3 revisions

How to build crosswalk-tizen

This section describes how to build the crosswalk-tizen project using gbs.

  1. Clone the crosswalk-tizen project with command:

     $  git clone https://github.com/crosswalk-project/crosswalk-tizen.git
    
  2. Switch to the crosswalk-tizen directory that you clone.

     $ cd crosswalk-tizen/
    
  3. Configure the GBS configuration file

Git Build System
crosswalk-izen uses the GBS (Git Build System) to build source code and generate rpm packages locally.
See Installing development tools for detailed information about installing GBS.

    $ vi ~/.gbs.conf
    [general]
    profile = profile.tizen3.0_mobile
    
    [profile.tizen3.0_mobile]
    repos=repo.tizen3.0_arm
    
    [repo.tizen3.0_arm]
    url = http://download.tizen.org/snapshots/tizen/mobile/latest/repos/arm-wayland/packages/
The url value in the gbs.conf file should be set according to your profile and architecture:

| Profile         	| Arch  	| url                                                                                        	|
|-----------------	|-------	|--------------------------------------------------------------------------------------------	|
| Mobile          	| 32bit 	| http://download.tizen.org/snapshots/tizen/mobile/latest/repos/arm-wayland/packages/        	|
|                 	| 64bit 	| http://download.tizen.org/snapshots/tizen/mobile/latest/repos/arm64-wayland/packages/      	|
| Mobile Emulator 	| 32bit 	| http://download.tizen.org/snapshots/tizen/mobile/latest/repos/emulator32-wayland/packages/ 	|
|                 	| 64bit 	| http://download.tizen.org/snapshots/tizen/mobile/latest/repos/emulator64-wayland/packages/ 	|
| TV                	| 32bit 	| http://download.tizen.org/snapshots/tizen/tv/latest/repos/arm-wayland/packages/            	|
| TV Emulator     	| 32bit 	| http://download.tizen.org/snapshots/tizen/tv/latest/repos/emulator32-wayland/packages/     	|


For more information about GBS, please refer to [Building Packages Locally with GBS](https://source.tizen.org/documentation/developer-guide/getting-started-guide/building-packages-locally-gbs?langredirect=1).
  1. Build the project with following command

     ~/{my path}/crosswalk-tizen $ gbs build -A <Arch> 
    

The value of 'Arch' should be changed according to the architecture which you wish to build for.
Supported architectures are i586, x86_64, armv7l and aarch64.

  1. After successfully building, GBS moves the generated crosswalk-tizen RPM package into the output directory which is ~/GBS-ROOT/local/repos/<Release_ID>/<Arch>.

Create a Crosswalk Tizen Web Application

Refer to the Getting Started page to create your first crosswalk-tizen web application.

Clone this wiki locally