Windows: set TVG_EXPORT to dllexport also for mingw
[platform/core/graphics/tizenvg.git] / CONTRIBUTING.md
1 We always appreciate your contribution. ThorVG doesn't expect perfect patch contributions, instead we expect contributions if your patch makes thorvg better than before. This page guides the ThorVG contribution format.<br />
2 <br />
3 ## Reviewers
4 Hermet Park (hermet) is the lead maintainer. Also there are designated maintainers you can request your pull-request for separate modules.
5
6 <b>common:</b> Junsu Choi (JSUYA) <br />
7 <b>sw_engine:</b> Junsu Choi (JSUYA), Mira Grudzinska (mgrudzinska), Michal Szczecinski (mihashco) <br />
8 <b>svg_loader:</b> Junsu Choi (JSUYA), Mira Grudzinska (mgrudzinska), Michal Maciola (mmaciola) <br />
9 <b>jpg_loader:</b> Michal Maciola (mmaciola) <br />
10 <b>tvg_loader:</b> Michal Maciola (mmaciola) <br />
11 <b>tvg_saver:</b> Mira Grudzinska (mgrudzinska) <br />
12 <b>wasm:</b> Shinwoo Kim (kimcinoo), Michal Maciola (mmaciola) <br />
13 <b>svg2png:</b> Junsu Choi (JSUYA), Michal Maciola (mmaciola) <br />
14 <b>capi:</b> Michal Szczecinski (mihashco), Mira Grudzinska (mgrudzinska) <br />
15 <br />
16
17 ## Self Test & Verification
18 After updating ThorVG code, please verify your change doesn't break the library. We suggest unit-tests using the Catch2 framework. You can easily run it with build commands as the following: <br />
19 <br/>
20 `
21 $meson . build -Dtests=true -Dloaders="all" -Dsavers="tvg" -Dbindings="capi" -Dtools="all" -Dlog=true
22 `
23 <br />
24 `
25 $ninja -C build test
26 `
27 <br/>
28 <br/>
29 Please make it sure running all tests and no any fail case.<br/>
30 <br/>
31 Expected Fail:      0<br/>
32 Fail:               0<br/>
33 Unexpected Pass:    0<br/>
34 Skipped:            0<br/>
35 Timeout:            0<br/>
36 <br/>
37 ## Commit Message
38 [Module][Feature]: [Title]
39
40 [Description]
41
42 - [Module] is a sub module majorly affected by your change. Most of times this indicates a sub folder name.
43 This indicates whom need to review your patch as well.
44 If your change don't belonged to any sub modules, you can replace with proper name or skip it.
45 The name must be written in all lower alphabet characters.
46   - ex) build / doc / infra / common / sw_engine / gl_engine / svg_loader / examples / wasm / svg2png  ...
47
48 - [Feature] is what major function/feature you changed. Normally this indicates a representive file name. 
49 You can keep the file name, but don't please contain any prefix(tvg) nor suffix(Impl) here.
50   - ex) Canvas / TaskScehduler / SvgLoader / SvgBuilder / SwRle / GlRenderer / ...
51
52 - [Title] is a brief description of your change. It must be described in one sentence.
53   - ex) "Fixed a typo"
54   - ex) "Fixed compile warnings"
55   - ex) "Code refactoring"
56   - ex) "Fixed a rendering bug that overlapped shapes inproper way."
57   
58 - [Description] There is no any strict formats, but it must describe what you did in this patch as far as possible you can describe in detail.
59
60   If you fixed any bugs, it must contain below:
61   - what type of bug  
62   - conditions to reproduce it
63   - root cause
64   - solution 
65   
66   Or if you add a new feature or function, it must contain below:
67   - what sort of features
68   - api full specification (if any api additions)
69   - any necessity
70   - condition / restriction  
71   - reference or sample
72   
73   Lastly, please append any issue ticket numbers in this section if any.
74   
75   
76 - Here is a overall commit message what we expect to review:
77   
78   - common composite: newly added path clipping feature
79
80     We introduced new method Paint::composite() to support composite behaviors. </br>
81     This allows paints to composite with other paints instances. </br>
82     Composite behaviors depend on its composite method type. </br>
83     Here we firstly introduced "ClipPath" method to support clipping by path unit of paint.</br>    
84     
85     tagetPaint->composite(srcPaint, CompositeMethod::ClipPath);</br>
86     
87     Beaware if the source paint doesn't contain any path info, clipping won't be applied as you expected.
88     
89     @API Additions:</br>
90     enum CompositeMethod {None = 0, ClipPath}; </br>
91     Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) const noexcept;</br>
92
93     @Examples: added ClipPath</br>
94     
95     @References: any links to the references such as screenshot images.
96
97     @Issues: 49
98 <br />
99
100 ## Pull Request
101   
102 Once you submitted a pull request(PR), please make it sure below check list.
103 -  Reviewers: Check Reviewers List
104 -  Assignees: You
105 -  Labels: Patch Purpose
106 -  CODING STYLE CHECK: Must be perfect
107 <p align="center"><img width="1000" height="1072" src="https://github.com/Samsung/thorvg/blob/master/res/contribution.png"></p>